//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.Collections;
			using System.ComponentModel;
			using System.Data.Common;
			using System.Data;
			using System.Data.SqlClient;
			using System.Drawing;
			using System;
			using System.Resources;
			using System.Windows.Forms;
			using Utility;
			
		#endregion
		
	public class frmHoSoBenhAn : Form
	
	{
		
		#region Fields
			public string BacSi;
			public string BenhNhanMoi;
			private Button btAdd;
			private Button btAddChanDoan;
			private Button btCapNhat;
			private Button btLapBenhAnMoi;
			private Button btLuuBenhAn;
			private Button btRemove;
			private Button btRemoveChanDoan;
			private Button btTaiKham;
			private Button btThoat;
			private ComboBox cbBacSi;
			private ImageCombo cbETimes;
			private ImageCombo cboTaiKham;
			public string ChanDoan;
			private CheckBox chbBAGoc;
			private CheckBox checkBox1;
			private CheckBox chkHetBenh;
			public string clrImageISN;
			public string clrISN;
			private string clrISN1;
			private string clrNoiSoiISN;
			private IContainer components;
			private string connStr;
			private ContextMenu ctmLoiKhuyen;
			private ContextMenu ctmPhauThuat;
			private ContextMenu ctmThuThuat;
			private ContextMenu ctmTienCan;
			private string day;
			private Database_Com db;
			public string DiaChi;
			private DateTimePicker dtpBirthDay;
			private DateTimePicker dtpNgayHen;
			private DateTimePicker dtpNgayKham;
			private DateTimePicker dtpNgayTaiKham;
			private bool existUpdated;
			private frmLapHinhAnh fLapHinhAnh;
			private GroupBox groupBox1;
			private GroupBox groupBox2;
			private GroupBox groupBox3;
			private GroupBox groupBox4;
			private GroupBox groupBox5;
			private GroupBox groupBox6;
			private GroupBox groupBox7;
			private GroupBox groupBox8;
			private GroupBox groupBox9;
			public string ID;
			private ImageList imageList1;
			public string ImagePath;
			private bool Insert;
			private bool insertXetNghiem;
			private Label label1;
			private Label label10;
			private Label label11;
			private Label label12;
			private Label label13;
			private Label label14;
			private Label label15;
			private Label label16;
			private Label label17;
			private Label label18;
			private Label label19;
			private Label label2;
			private Label label20;
			private Label label21;
			private Label label22;
			private Label label23;
			private Label label3;
			private Label label4;
			private Label label5;
			private Label label6;
			private Label label7;
			private Label label8;
			private Label label9;
			private Label lbBacSi;
			private ListBox lbCD;
			private LinkLabel linkBAGoc;
			private LinkLabel linkLabel1;
			private LinkLabel linkNoiSoi;
			private LinkLabel linkXetNghiem;
			private ListView listView1;
			private string llablel;
			public string LoiDan;
			private string month;
			private string ngayKham;
			public string NgayKham;
			public string NgayTaiKham;
			public string NgheNghiep;
			public string NhanBiet;
			private TreeNode node;
			private Panel panel1;
			public string patISN;
			public string Phai;
			private RadioButton rbFemale;
			private RadioButton rbMale;
			private TextBox tbAddress;
			private TextBox tbBenhNgoaiDS;
			public TextBox tbBenhSu;
			private TextBox tbBSu;
			private TextBox tbCanNang;
			private TextBox tbCDNgoaiDS;
			private TextBox tbDiDong;
			private TextBox tbDienBien;
			private TextBox tbFullName;
			private TextBox tbHuyetAp;
			private TextBox tbID;
			private TextBox tbJob;
			private TextBox tbLanKham;
			public TextBox tbLoiKhuyen;
			private TextBox tbMach;
			private TextBox tbNgayKham;
			private TextBox tbNhietDo;
			public TextBox tbPhauThuat;
			private TextBox tbPhone;
			public TextBox tbThuThuat;
			private TextBox tbTuoi;
			public string Ten;
			public string ThanhTien;
			public string ThuocSuDung;
			public string ThuThuat;
			public string ToaThuoc;
			private ToolTip toolTip1;
			private TreeView treeView1;
			private TreeView treeView2;
			public string Tuoi;
			private TextBox txtTaiKham;
			private string year;
		#endregion
		
		#region Constructors
		
			public frmHoSoBenhAn (string clrISN, string NhanBiet, string PatISN)
			
			{
				this.db = new Database_Com ();
				this.llablel = string.Empty;
				this.existUpdated = false;
				this.InitializeComponent ();
				this.connStr = Connection.ConnectionString ();
				NhanBiet = NhanBiet;
				this.clrISN1 = clrISN;
				this.patISN = PatISN;
				return;
			}
			
		#endregion
		
		#region Methods
		
			private void AddLoiKhuyen (object sender, EventArgs e)
			
			{
				Point thePoint;
				if (this.tbLoiKhuyen.Text != "")
				{
					goto L_003B;
				}
				this.tbLoiKhuyen.Text = string.Concat ("- ", sender.ToString ().Substring (53));
				goto L_0063;
				
			L_003B:
				
				{
				}
				this.tbLoiKhuyen.Text = string.Concat (this.tbLoiKhuyen.Text, "\r\n- ", sender.ToString ().Substring (53));
				
			L_0063:
				
				{
				}
				thePoint = new Point (13, 24);
				this.ctmLoiKhuyen.Show (((Control) this.tbLoiKhuyen), thePoint);
				return;
			}
			
			private void AddPhauThuat (object sender, EventArgs e)
			
			{
				Point thePoint;
				if (this.tbPhauThuat.Text != "")
				{
					goto L_003B;
				}
				this.tbPhauThuat.Text = string.Concat ("- ", sender.ToString ().Substring (53));
				goto L_0063;
				
			L_003B:
				
				{
				}
				this.tbPhauThuat.Text = string.Concat (this.tbPhauThuat.Text, "\r\n- ", sender.ToString ().Substring (53));
				
			L_0063:
				
				{
				}
				thePoint = new Point (12, 24);
				this.ctmPhauThuat.Show (((Control) this.tbPhauThuat), thePoint);
				return;
			}
			
			private void AddThuThuat (object sender, EventArgs e)
			
			{
				Point thePoint;
				if (this.tbThuThuat.Text != "")
				{
					goto L_003B;
				}
				this.tbThuThuat.Text = string.Concat ("- ", sender.ToString ().Substring (53));
				goto L_0063;
				
			L_003B:
				
				{
				}
				this.tbThuThuat.Text = string.Concat (this.tbThuThuat.Text, "\r\n- ", sender.ToString ().Substring (53));
				
			L_0063:
				
				{
				}
				thePoint = new Point (13, 24);
				this.ctmThuThuat.Show (((Control) this.tbThuThuat), thePoint);
				return;
			}
			
			private void btAdd_Click (object sender, EventArgs e)
			
			{
				this.treeView1_DoubleClick (sender, e);
				return;
			}
			
			private void btAddChanDoan_Click (object sender, EventArgs e)
			
			{
				this.treeView2_DoubleClick (sender, e);
				return;
			}
			
			private void btAddPic_Click (object sender, EventArgs e)
			
			{
				if (this.fLapHinhAnh != null)
				{
					goto L_001F;
				}
				this.fLapHinhAnh = new frmLapHinhAnh (this);
				this.fLapHinhAnh.Show ();
				
			L_001F:
				
				{
				}
				if (this.fLapHinhAnh.flag != 0)
				{
					goto L_0043;
				}
				this.fLapHinhAnh = new frmLapHinhAnh (this);
				this.fLapHinhAnh.Show ();
				
			L_0043:
				
				{
				}
				if (this.fLapHinhAnh.flag != 1)
				{
					goto L_005C;
				}
				this.fLapHinhAnh.Activate ();
				
			L_005C:
				return;
			}
			
			private void btCapNhat_Click (object sender, EventArgs e)
			
			{
				string theString;
				string theString2;
				string theString3;
				string theString4;
				string theString5;
				string theString6;
				string theString7;
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				ArrayList theArrayList;
				ArrayList theArrayList2;
				ArrayList theArrayList3;
				int i;
				int i2;
				string theString8;
				string theString9;
				int i3;
				SqlCommand theSqlCommand;
				SqlParameter theSqlParameter;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				DataTable theDataTable;
				SqlCommand theSqlCommand2;
				int i4;
				SqlCommand theSqlCommand3;
				SqlCommand theSqlCommand4;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				ArrayList theArrayList4;
				ArrayList theArrayList5;
				int i5;
				int i6;
				int i7;
				SqlCommand theSqlCommand5;
				SqlParameter theSqlParameter2;
				SqlDataAdapter theSqlDataAdapter4;
				DataSet theDataSet4;
				DataTable theDataTable2;
				int i8;
				SqlCommand theSqlCommand6;
				Exception theException;
				string[] theStringArray;
				string[] theStringArray2;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				string[] theStringArray3;
				Color theColor;
				string[] theStringArray4;
				string[] theStringArray5;
				SqlDbType[] theSqlDbTypeArray2;
				object[] theObjectArray2;
				string[] theStringArray6;
				string[] theStringArray7;
				SqlDbType[] theSqlDbTypeArray3;
				object[] theObjectArray3;
				string[] theStringArray8;
				SqlDbType[] theSqlDbTypeArray4;
				object[] theObjectArray4;
				string[] theStringArray9;
				if (! this.checkData ())
				{
					goto L_1068;
				}
				
			L_000B:
				try
				{
					if (this.tbPhone.Text.Length <= 0)
					{
						goto L_004E;
					}
					if (this.IsNumber (this.tbPhone.Text.ToString ()))
					{
						goto L_004E;
					}
					DialogResult theDialogResult = MessageBox.Show ("S? ?i?n tho?i kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_1068;
					
				L_004E:
					
					{
					}
					if (this.tbDiDong.Text.Length <= 0)
					{
						goto L_0091;
					}
					if (this.IsNumber (this.tbDiDong.Text.ToString ()))
					{
						goto L_0091;
					}
					DialogResult theDialogResult2 = MessageBox.Show ("S? ?i?n tho?i di ??ng kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_1068;
					
				L_0091:
					
					{
					}
					if (this.tbMach.Text.Length <= 0)
					{
						goto L_00D4;
					}
					if (this.IsNumber (this.tbMach.Text.ToString ()))
					{
						goto L_00D4;
					}
					DialogResult theDialogResult3 = MessageBox.Show ("M?ch kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_1068;
					
				L_00D4:
					
					{
					}
					if (this.tbNhietDo.Text.Length <= 0)
					{
						goto L_0117;
					}
					if (this.IsFloat (this.tbNhietDo.Text.ToString ()))
					{
						goto L_0117;
					}
					DialogResult theDialogResult4 = MessageBox.Show ("Nhi?t ?? kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_1068;
					
				L_0117:
					
					{
					}
					if (this.tbCanNang.Text.Length <= 0)
					{
						goto L_015A;
					}
					if (this.IsFloat (this.tbCanNang.Text.ToString ()))
					{
						goto L_015A;
					}
					DialogResult theDialogResult5 = MessageBox.Show ("C?n n?ng kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_1068;
					
				L_015A:
					
					{
					}
					if (! this.chkHetBenh.Checked)
					{
						goto L_01AC;
					}
					this.listView1.Items.Clear ();
					this.lbCD.Items.Clear ();
					this.tbBenhNgoaiDS.Text = "";
					this.tbCDNgoaiDS.Text = "";
					goto L_023A;
					
				L_01AC:
					
					{
					}
					if (this.listView1.Items.Count > 0)
					{
						goto L_01F3;
					}
					if (this.tbBenhNgoaiDS.Text.Trim () != "")
					{
						goto L_01F3;
					}
					DialogResult theDialogResult6 = MessageBox.Show ("Vui l?ng ch?n tri?u ch?ng!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_1068;
					
				L_01F3:
					
					{
					}
					if (this.lbCD.Items.Count > 0)
					{
						goto L_023A;
					}
					if (this.tbCDNgoaiDS.Text.Trim () != "")
					{
						goto L_023A;
					}
					DialogResult theDialogResult7 = MessageBox.Show ("Ch?n ?o?n kh?ng h?p l?!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_1068;
					
				L_023A:
					
					{
					}
					if (this.tbMach.Text != "")
					{
						goto L_0259;
					}
					theString = "0";
					goto L_026A;
					
				L_0259:
					
					{
					}
					theString = this.tbMach.Text.ToString ();
					
				L_026A:
					
					{
					}
					if (this.tbNhietDo.Text != "")
					{
						goto L_0289;
					}
					theString2 = "0";
					goto L_029A;
					
				L_0289:
					
					{
					}
					theString2 = this.tbNhietDo.Text.ToString ();
					
				L_029A:
					
					{
					}
					if (this.tbHuyetAp.Text != "")
					{
						goto L_02B9;
					}
					theString3 = "0";
					goto L_02CA;
					
				L_02B9:
					
					{
					}
					theString3 = this.tbHuyetAp.Text.ToString ();
					
				L_02CA:
					
					{
					}
					if (this.tbCanNang.Text != "")
					{
						goto L_02E9;
					}
					theString4 = "0";
					goto L_02FA;
					
				L_02E9:
					
					{
					}
					theString4 = this.tbCanNang.Text.ToString ();
					
				L_02FA:
					
					{
					}
					if (! this.checkBox1.Checked)
					{
						goto L_034A;
					}
					if (this.tbPhauThuat.Text != "")
					{
						goto L_0336;
					}
					DialogResult theDialogResult8 = MessageBox.Show ("Vui l?ng nh?p ph?u thu?t", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_1068;
					
				L_0336:
					
					{
					}
					theString5 = this.tbPhauThuat.Text.ToString ();
					goto L_0351;
					
				L_034A:
					
					{
					}
					theString5 = string.Empty;
					
				L_0351:
					
					{
					}
					if (! this.rbMale.Checked)
					{
						goto L_0367;
					}
					theString6 = "Nam";
					goto L_036E;
					
				L_0367:
					
					{
					}
					theString6 = "N?";
					
				L_036E:
					
					{
					}
					this.dtpBirthDay.CustomFormat = "MM/dd/yyyy";
					this.dtpNgayTaiKham.CustomFormat = "MM/dd/yyyy";
					this.dtpNgayKham.CustomFormat = "MM/dd/yyyy";
					theStringArray = new string[5];
					theStringArray[0] = this.month;
					theStringArray[1] = "/";
					theStringArray[2] = this.day;
					theStringArray[3] = "/";
					theStringArray[4] = this.year;
					this.tbNgayKham.Text = string.Concat (theStringArray);
					this.dtpNgayHen.CustomFormat = "MM/dd/yyyy";
					SqlConnection theSqlConnection2 = this.db.CreateConnections ();
					theString7 = string.Empty;
					if (this.cboTaiKham.Visible)
					{
						goto L_0421;
					}
					theString7 = "0";
					goto L_042E;
					
				L_0421:
					
					{
					}
					theString7 = this.cboTaiKham.Text;
					
				L_042E:
					
					{
					}
					theStringArray2 = new string[27];
					theStringArray2[0] = "@patISN";
					theStringArray2[1] = "@patID";
					theStringArray2[2] = "@patName";
					theStringArray2[3] = "@patBirthDate";
					theStringArray2[4] = "@patAge";
					theStringArray2[5] = "@patSex";
					theStringArray2[6] = "@patAddress";
					theStringArray2[7] = "@patTel";
					theStringArray2[8] = "@patOccupation";
					theStringArray2[9] = "@empISN";
					theStringArray2[10] = "@clrPulse";
					theStringArray2[11] = "@clrTemperature";
					theStringArray2[12] = "@clrBloodPressure";
					theStringArray2[13] = "@clrWeigh";
					theStringArray2[14] = "@clrMedicalHistory";
					theStringArray2[15] = "@clrTest";
					theStringArray2[16] = "@clrSickNotInList";
					theStringArray2[17] = "@clrExaminationTimes";
					theStringArray2[18] = "@clrSkill";
					theStringArray2[19] = "@clrMedicalAdvice";
					theStringArray2[20] = "@clrFollowUpExaminationDate";
					theStringArray2[21] = "@clrSurgery";
					theStringArray2[22] = "@patMobile";
					theStringArray2[23] = "@clrAppointmentDate";
					theStringArray2[24] = "@clrSickChange";
					theStringArray2[25] = "@clrSickHistory";
					theStringArray2[26] = "@clrRexaminationTimes";
					theSqlDbTypeArray = new SqlDbType[27];
					theSqlDbTypeArray[0] = SqlDbType.Int;
					theSqlDbTypeArray[1] = SqlDbType.VarChar;
					theSqlDbTypeArray[2] = SqlDbType.NVarChar;
					theSqlDbTypeArray[3] = SqlDbType.DateTime;
					theSqlDbTypeArray[4] = SqlDbType.TinyInt;
					theSqlDbTypeArray[5] = SqlDbType.NVarChar;
					theSqlDbTypeArray[6] = SqlDbType.NVarChar;
					theSqlDbTypeArray[7] = SqlDbType.NVarChar;
					theSqlDbTypeArray[8] = SqlDbType.NVarChar;
					theSqlDbTypeArray[9] = SqlDbType.Int;
					theSqlDbTypeArray[10] = SqlDbType.Float;
					theSqlDbTypeArray[11] = SqlDbType.Float;
					theSqlDbTypeArray[12] = SqlDbType.VarChar;
					theSqlDbTypeArray[13] = SqlDbType.Float;
					theSqlDbTypeArray[14] = SqlDbType.NVarChar;
					theSqlDbTypeArray[15] = SqlDbType.NVarChar;
					theSqlDbTypeArray[16] = SqlDbType.NVarChar;
					theSqlDbTypeArray[17] = SqlDbType.Int;
					theSqlDbTypeArray[18] = SqlDbType.NVarChar;
					theSqlDbTypeArray[19] = SqlDbType.NVarChar;
					theSqlDbTypeArray[20] = SqlDbType.DateTime;
					theSqlDbTypeArray[21] = SqlDbType.NVarChar;
					theSqlDbTypeArray[22] = SqlDbType.NVarChar;
					theSqlDbTypeArray[23] = SqlDbType.DateTime;
					theSqlDbTypeArray[24] = SqlDbType.NVarChar;
					theSqlDbTypeArray[25] = SqlDbType.NVarChar;
					theSqlDbTypeArray[26] = SqlDbType.Int;
					theObjectArray = new object[27];
					theObjectArray[0] = this.patISN;
					theObjectArray[1] = this.tbID.Text.ToString ();
					theObjectArray[2] = this.tbFullName.Text.ToString ();
					theObjectArray[3] = this.dtpBirthDay.Text;
					theObjectArray[4] = this.tbTuoi.Text.ToString ();
					theObjectArray[5] = theString6;
					theObjectArray[6] = this.tbAddress.Text.ToString ();
					theObjectArray[7] = this.tbPhone.Text.ToString ();
					theObjectArray[8] = this.tbJob.Text.ToString ();
					theObjectArray[9] = this.cbBacSi.SelectedValue.ToString ();
					theObjectArray[10] = theString;
					theObjectArray[11] = theString2;
					theObjectArray[12] = theString3;
					theObjectArray[13] = theString4;
					theObjectArray[14] = this.tbBenhSu.Text.ToString ();
					theObjectArray[15] = "";
					theObjectArray[16] = this.tbBenhNgoaiDS.Text.ToString ();
					theObjectArray[17] = this.cbETimes.Text.ToString ();
					theObjectArray[18] = this.tbThuThuat.Text.ToString ();
					theObjectArray[19] = this.tbLoiKhuyen.Text.ToString ();
					theObjectArray[20] = this.dtpNgayTaiKham.Text;
					theObjectArray[21] = theString5;
					theObjectArray[22] = this.tbDiDong.Text.ToString ();
					theObjectArray[23] = this.dtpNgayHen.Text;
					theObjectArray[24] = this.tbDienBien.Text.ToString ();
					theObjectArray[25] = this.tbBSu.Text.ToString ();
					theObjectArray[26] = theString7;
					this.db.ExecuteStoredProc ("sp_ClinicalRecord_Update", theStringArray2, theSqlDbTypeArray, theObjectArray);
					theSqlConnection = new SqlConnection (this.connStr);
					theStringArray3 = new string[6];
					theStringArray3[0] = "SELECT * FROM vw_SearchClinicalRecord WHERE patISN=";
					theStringArray3[1] = this.patISN;
					theStringArray3[2] = "AND clrExaminationTimes=";
					theStringArray3[3] = this.cbETimes.Text;
					theStringArray3[4] = " and clrRexaminationTimes = ";
					theStringArray3[5] = this.cboTaiKham.Text;
					theSqlDataAdapter = new SqlDataAdapter (string.Concat (theStringArray3), theSqlConnection);
					theDataSet = new DataSet ();
					int i9 = theSqlDataAdapter.Fill (theDataSet, "vw_SearchClinicalRecord");
					this.clrNoiSoiISN = theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0][17].ToString ();
					theArrayList = new ArrayList ();
					theArrayList2 = new ArrayList ();
					theArrayList3 = new ArrayList ();
					i = this.listView1.Items.Count;
					i2 = 0;
					goto L_096E;
					
				L_088D:
					
					{
					}
					theString8 = this.listView1.Items[i2].Text.ToString ();
					theString9 = (theColor = this.listView1.Items[i2].ForeColor).Name.ToString ();
					if (theString9 != "Red")
					{
						goto L_08EE;
					}
					int i10 = theArrayList3.Add (0);
					
				L_08EE:
					
					{
					}
					if (theString9 != "Blue")
					{
						goto L_090A;
					}
					int i11 = theArrayList3.Add (1);
					
				L_090A:
					
					{
					}
					if (theString9 != "Purple")
					{
						goto L_0926;
					}
					int i12 = theArrayList3.Add (2);
					
				L_0926:
					
					{
					}
					if (theString9 != "Green")
					{
						goto L_0942;
					}
					int i13 = theArrayList3.Add (3);
					
				L_0942:
					
					{
					}
					if (theString9 != "Gray")
					{
						goto L_095E;
					}
					int i14 = theArrayList3.Add (4);
					
				L_095E:
					
					{
					}
					int i15 = theArrayList.Add (theString8);
					i2++;
					
				L_096E:
					
					{
					}
					if (i2 < i)
					{
						goto L_088D;
					}
					i3 = 0;
					goto L_0A17;
					
				L_097F:
					
					{
					}
					theSqlCommand = new SqlCommand ("SELECT * FROM Sicks WHERE sckName=@sckName", theSqlConnection);
					theSqlParameter = new SqlParameter ("@sckName", SqlDbType.NVarChar);
					theSqlParameter.Value = theArrayList[i3].ToString ();
					SqlParameter theSqlParameter3 = theSqlCommand.Parameters.Add (theSqlParameter);
					theSqlDataAdapter2 = new SqlDataAdapter (theSqlCommand);
					theDataSet2 = new DataSet ();
					int i16 = theSqlDataAdapter2.Fill (theDataSet2, "Sicks");
					theDataTable = theDataSet2.Tables["Sicks"];
					int i17 = theArrayList2.Add (theDataTable.Rows[0][0].ToString ());
					i3++;
					
				L_0A17:
					
					{
					}
					if (i3 < theArrayList.Count)
					{
						goto L_097F;
					}
					theSqlCommand2 = new SqlCommand (string.Concat ("DELETE ClinicalSicks WHERE clrISN=", theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0][17].ToString ()), theSqlConnection);
					theSqlCommand2.Connection.Open ();
					int i18 = theSqlCommand2.ExecuteNonQuery ();
					theSqlCommand2.Connection.Close ();
					i4 = 0;
					goto L_0B3A;
					
				L_0A88:
					
					{
					}
					theStringArray4 = new string[7];
					theStringArray4[0] = "INSERT INTO ClinicalSicks VALUES(";
					theStringArray4[1] = theArrayList2[i4].ToString ();
					theStringArray4[2] = ", ";
					theStringArray4[3] = theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0][17].ToString ();
					theStringArray4[4] = ",";
					theStringArray4[5] = theArrayList3[i4].ToString ();
					theStringArray4[6] = ")";
					theSqlCommand3 = new SqlCommand (string.Concat (theStringArray4), theSqlConnection);
					theSqlCommand3.Connection.Open ();
					int i19 = theSqlCommand3.ExecuteNonQuery ();
					theSqlCommand3.Connection.Close ();
					i4++;
					
				L_0B3A:
					
					{
					}
					if (i4 < theArrayList2.Count)
					{
						goto L_0A88;
					}
					theSqlCommand4 = new SqlCommand (string.Concat ("DELETE PathologicalClinical WHERE clrISN=", theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0]["clrISN"].ToString ()), theSqlConnection);
					theSqlCommand4.Connection.Open ();
					int i20 = theSqlCommand4.ExecuteNonQuery ();
					theSqlCommand4.Connection.Close ();
					theSqlDataAdapter3 = new SqlDataAdapter (string.Concat ("SELECT * FROM PathologicalOutList WHERE clrISN=", theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0]["clrISN"].ToString ()), theSqlConnection);
					theDataSet3 = new DataSet ();
					int i21 = theSqlDataAdapter3.Fill (theDataSet3, "PathologicalOutList");
					if ((theDataSet3 != null) && ((theDataSet3.Tables.Count != 0) && (theDataSet3.Tables[0].Rows.Count != 0)))
					{
						goto L_0CC2;
					}
					
				L_0C28:
					
					{
					}
					SqlConnection theSqlConnection3 = this.db.CreateConnections ();
					theStringArray5 = new string[2];
					theStringArray5[0] = "@clrISN";
					theStringArray5[1] = "@polPathologicalSignsOutList";
					theSqlDbTypeArray2 = new SqlDbType[2];
					theSqlDbTypeArray2[0] = SqlDbType.Int;
					theSqlDbTypeArray2[1] = SqlDbType.NVarChar;
					theObjectArray2 = new object[2];
					theObjectArray2[0] = theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0]["clrISN"].ToString ();
					theObjectArray2[1] = this.tbCDNgoaiDS.Text.ToString ();
					this.db.ExecuteStoredProc ("sp_PathologicalOutList_Insert", theStringArray5, theSqlDbTypeArray2, theObjectArray2);
					
				L_0CC2:
					
					{
					}
					theArrayList4 = new ArrayList ();
					theArrayList5 = new ArrayList ();
					i5 = this.lbCD.Items.Count;
					i6 = 0;
					goto L_0D0C;
					
				L_0CE7:
					
					{
					}
					int i22 = theArrayList4.Add (this.lbCD.Items[i6].ToString ());
					i6++;
					
				L_0D0C:
					
					{
					}
					if (i6 < i5)
					{
						goto L_0CE7;
					}
					i7 = 0;
					goto L_0DB2;
					
				L_0D1A:
					
					{
					}
					theSqlCommand5 = new SqlCommand ("SELECT * FROM PathologicalSigns WHERE plsPathologicalSigns=@plsPathologicalSigns", theSqlConnection);
					theSqlParameter2 = new SqlParameter ("@plsPathologicalSigns", SqlDbType.NVarChar);
					theSqlParameter2.Value = theArrayList4[i7].ToString ();
					SqlParameter theSqlParameter4 = theSqlCommand5.Parameters.Add (theSqlParameter2);
					theSqlDataAdapter4 = new SqlDataAdapter (theSqlCommand5);
					theDataSet4 = new DataSet ();
					int i23 = theSqlDataAdapter4.Fill (theDataSet4, "PathologicalSigns");
					theDataTable2 = theDataSet4.Tables["PathologicalSigns"];
					int i24 = theArrayList5.Add (theDataTable2.Rows[0][0].ToString ());
					i7++;
					
				L_0DB2:
					
					{
					}
					if (i7 < theArrayList4.Count)
					{
						goto L_0D1A;
					}
					i8 = 0;
					goto L_0E62;
					
				L_0DC8:
					
					{
					}
					theStringArray6 = new string[5];
					theStringArray6[0] = "INSERT INTO PathologicalClinical VALUES(";
					theStringArray6[1] = theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0]["clrISN"].ToString ();
					theStringArray6[2] = ", ";
					theStringArray6[3] = theArrayList5[i8].ToString ();
					theStringArray6[4] = ")";
					theSqlCommand6 = new SqlCommand (string.Concat (theStringArray6), theSqlConnection);
					theSqlCommand6.Connection.Open ();
					int i25 = theSqlCommand6.ExecuteNonQuery ();
					theSqlCommand6.Connection.Close ();
					i8++;
					
				L_0E62:
					
					{
					}
					if (i8 < theArrayList5.Count)
					{
						goto L_0DC8;
					}
					SqlConnection theSqlConnection4 = this.db.CreateConnections ();
					theStringArray7 = new string[2];
					theStringArray7[0] = "@clrISN";
					theStringArray7[1] = "@polPathologicalSignsOutList";
					theSqlDbTypeArray3 = new SqlDbType[2];
					theSqlDbTypeArray3[0] = SqlDbType.Int;
					theSqlDbTypeArray3[1] = SqlDbType.NVarChar;
					theObjectArray3 = new object[2];
					theObjectArray3[0] = theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0]["clrISN"].ToString ();
					theObjectArray3[1] = this.tbCDNgoaiDS.Text.ToString ();
					this.db.ExecuteStoredProc ("sp_PathologicalOutList_Update", theStringArray7, theSqlDbTypeArray3, theObjectArray3);
					SqlConnection theSqlConnection5 = this.db.CreateConnections ();
					theStringArray8 = new string[1];
					theStringArray8[0] = "@clrISN";
					theSqlDbTypeArray4 = new SqlDbType[1];
					theSqlDbTypeArray4[0] = SqlDbType.Int;
					theObjectArray4 = new object[1];
					theObjectArray4[0] = theDataSet.Tables["vw_SearchClinicalRecord"].Rows[0]["clrISN"].ToString ();
					this.db.ExecuteStoredProc ("sp_ClinicalPathologicalSign_Update", theStringArray8, theSqlDbTypeArray4, theObjectArray4);
					this.Insert = false;
					DialogResult theDialogResult9 = MessageBox.Show ("M?u tin ?? ???c c?p nh?t", "C?p nh?t th?nh c?ng", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					this.dtpBirthDay.CustomFormat = "dd/MM/yyyy";
					this.dtpNgayTaiKham.CustomFormat = "dd/MM/yyyy";
					this.dtpNgayKham.CustomFormat = "dd/MM/yyyy";
					theStringArray9 = new string[5];
					theStringArray9[0] = this.day;
					theStringArray9[1] = "/";
					theStringArray9[2] = this.month;
					theStringArray9[3] = "/";
					theStringArray9[4] = this.year;
					this.tbNgayKham.Text = string.Concat (theStringArray9);
					this.dtpNgayHen.CustomFormat = "dd/MM/yyyy";
					this.NgayKham = this.dtpNgayKham.Text.ToString ();
					this.insertXetNghiem = false;
					this.linkLabel1.Enabled = true;
					this.existUpdated = true;
				}
				catch (Exception theException2)
				{
					
				L_1057:
					theException = theException2;
					DialogResult theDialogResult10 = MessageBox.Show (theException.Message);
				}
				
			L_1068:
				return;
			}
			
			private void btCapNhatAnh_Click (object sender, EventArgs e)
			
			{
				frmNoiSoi theFrmNoiSoi;
				this.NgayKham = this.dtpNgayKham.Text.ToString ();
				theFrmNoiSoi = new frmNoiSoi (this.tbID.Text.ToString (), this.tbFullName.Text.ToString (), this.clrNoiSoiISN, this.Insert, this.NgayKham);
				theFrmNoiSoi.ShowInTaskbar = false;
				DialogResult theDialogResult = theFrmNoiSoi.ShowDialog ();
				return;
			}
			
			private void btLapBenhAnMoi_Click (object sender, EventArgs e)
			
			{
				int i;
				string[] theStringArray;
				DateTime theDateTime;
				this.ThanhTien = "0";
				this.NhanBiet = string.Empty;
				theStringArray = new string[5];
				theStringArray[0] = this.day;
				theStringArray[1] = "/";
				theStringArray[2] = this.month;
				theStringArray[3] = "/";
				theStringArray[4] = this.year;
				this.ngayKham = string.Concat (theStringArray);
				this.tbLanKham.Visible = true;
				this.cbETimes.Visible = false;
				i = this.cbETimes.Items.Count;
				this.cbETimes.SelectedIndex = (i - 1);
				this.tbLanKham.Text = Convert.ToString (((int) (short.Parse (this.cbETimes.Text) + 1)));
				this.cboTaiKham.Visible = false;
				this.txtTaiKham.Visible = true;
				this.txtTaiKham.Text = "0";
				this.tbNgayKham.Text = this.ngayKham;
				this.dtpNgayKham.Visible = false;
				this.tbNgayKham.Visible = true;
				this.btCapNhat.Enabled = false;
				this.btLuuBenhAn.Visible = true;
				this.linkNoiSoi.Enabled = false;
				this.linkLabel1.Enabled = false;
				this.linkXetNghiem.Enabled = false;
				this.listView1.Items.Clear ();
				this.tbBenhNgoaiDS.Text = "";
				this.tbThuThuat.Text = "";
				this.tbCDNgoaiDS.Text = "";
				this.tbPhauThuat.Text = "";
				this.tbLoiKhuyen.Text = "";
				this.lbCD.Items.Clear ();
				this.cbBacSi.Visible = true;
				this.btLuuBenhAn.Enabled = true;
				this.btLapBenhAnMoi.Enabled = false;
				this.btTaiKham.Enabled = false;
				this.btCapNhat.Visible = false;
				this.tbDienBien.Text = "";
				this.tbBSu.Text = "";
				this.tbMach.Text = "";
				this.tbNhietDo.Text = "";
				this.tbHuyetAp.Text = "";
				this.tbCanNang.Text = "";
				this.chkHetBenh.Checked = false;
				this.clrNoiSoiISN = string.Empty;
				this.dtpNgayTaiKham.CustomFormat = "MM/dd/yyyy";
				this.dtpNgayTaiKham.Text = (theDateTime = DateTime.Now).ToString ();
				this.dtpNgayTaiKham.CustomFormat = "dd/MM/yyyy";
				return;
			}
			
			private void btLuuBenhAn_Click (object sender, EventArgs e)
			
			{
				string theString;
				string theString2;
				string theString3;
				string theString4;
				string theString5;
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				ArrayList theArrayList;
				ArrayList theArrayList2;
				ArrayList theArrayList3;
				int i;
				int i2;
				string theString6;
				string theString7;
				int i3;
				SqlCommand theSqlCommand;
				SqlParameter theSqlParameter;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				DataTable theDataTable2;
				int i4;
				SqlCommand theSqlCommand2;
				ArrayList theArrayList4;
				ArrayList theArrayList5;
				int i5;
				int i6;
				int i7;
				SqlCommand theSqlCommand3;
				SqlParameter theSqlParameter2;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				DataTable theDataTable3;
				int i8;
				SqlCommand theSqlCommand4;
				string theString8;
				string theString9;
				DateTime theDateTime;
				string theString10;
				Exception theException;
				Color theColor;
				string[] theStringArray;
				string[] theStringArray2;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				string[] theStringArray3;
				string[] theStringArray4;
				SqlDbType[] theSqlDbTypeArray2;
				object[] theObjectArray2;
				string[] theStringArray5;
				SqlDbType[] theSqlDbTypeArray3;
				object[] theObjectArray3;
				this.ThanhTien = "0";
				this.ToaThuoc = "0";
				this.llablel = "daluu";
				if (! this.checkData ())
				{
					goto L_0E09;
				}
				
			L_002C:
				try
				{
					if (this.tbMach.Text.Length <= 0)
					{
						goto L_006F;
					}
					if (this.IsNumber (this.tbMach.Text.ToString ()))
					{
						goto L_006F;
					}
					DialogResult theDialogResult = MessageBox.Show ("M?ch kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_0E09;
					
				L_006F:
					
					{
					}
					if (this.tbNhietDo.Text.Length <= 0)
					{
						goto L_00B2;
					}
					if (this.IsFloat (this.tbNhietDo.Text.ToString ()))
					{
						goto L_00B2;
					}
					DialogResult theDialogResult2 = MessageBox.Show ("Nhi?t ?? kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_0E09;
					
				L_00B2:
					
					{
					}
					if (this.tbCanNang.Text.Length <= 0)
					{
						goto L_00F5;
					}
					if (this.IsFloat (this.tbCanNang.Text.ToString ()))
					{
						goto L_00F5;
					}
					DialogResult theDialogResult3 = MessageBox.Show ("C?n n?ng kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_0E09;
					
				L_00F5:
					
					{
					}
					if (! this.chkHetBenh.Checked)
					{
						goto L_0147;
					}
					this.listView1.Items.Clear ();
					this.lbCD.Items.Clear ();
					this.tbBenhNgoaiDS.Text = "";
					this.tbCDNgoaiDS.Text = "";
					goto L_01D5;
					
				L_0147:
					
					{
					}
					if (this.listView1.Items.Count > 0)
					{
						goto L_018E;
					}
					if (this.tbBenhNgoaiDS.Text.Trim () != "")
					{
						goto L_018E;
					}
					DialogResult theDialogResult4 = MessageBox.Show ("Vui l?ng ch?n b?nh!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_0E09;
					
				L_018E:
					
					{
					}
					if (this.lbCD.Items.Count > 0)
					{
						goto L_01D5;
					}
					if (this.tbCDNgoaiDS.Text.Trim () != "")
					{
						goto L_01D5;
					}
					DialogResult theDialogResult5 = MessageBox.Show ("Ch?n ?o?n kh?ng h?p l?!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_0E09;
					
				L_01D5:
					
					{
					}
					if (! this.checkBox1.Checked)
					{
						goto L_0224;
					}
					if (this.tbPhauThuat.Text != "")
					{
						goto L_0211;
					}
					DialogResult theDialogResult6 = MessageBox.Show ("Vui l?ng nh?p ph?u thu?t", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_0E09;
					
				L_0211:
					
					{
					}
					theString = this.tbPhauThuat.Text.ToString ();
					goto L_022A;
					
				L_0224:
					
					{
					}
					theString = string.Empty;
					
				L_022A:
					
					{
					}
					if (this.tbMach.Text != "")
					{
						goto L_0249;
					}
					theString2 = "0";
					goto L_025A;
					
				L_0249:
					
					{
					}
					theString2 = this.tbMach.Text.ToString ();
					
				L_025A:
					
					{
					}
					if (this.tbNhietDo.Text != "")
					{
						goto L_0279;
					}
					theString3 = "0";
					goto L_028A;
					
				L_0279:
					
					{
					}
					theString3 = this.tbNhietDo.Text.ToString ();
					
				L_028A:
					
					{
					}
					if (this.tbHuyetAp.Text != "")
					{
						goto L_02A9;
					}
					theString4 = "0";
					goto L_02BA;
					
				L_02A9:
					
					{
					}
					theString4 = this.tbHuyetAp.Text.ToString ();
					
				L_02BA:
					
					{
					}
					if (this.tbCanNang.Text != "")
					{
						goto L_02DA;
					}
					theString5 = "0";
					goto L_02EC;
					
				L_02DA:
					
					{
					}
					theString5 = this.tbCanNang.Text.ToString ();
					
				L_02EC:
					
					{
					}
					theSqlConnection = new SqlConnection (this.connStr);
					theSqlDataAdapter = new SqlDataAdapter ("Select IDENT_CURRENT(\'ClinicalRecord\')", theSqlConnection);
					theDataSet = new DataSet ();
					int i9 = theSqlDataAdapter.Fill (theDataSet, "ClinicalRecord");
					theDataTable = theDataSet.Tables["ClinicalRecord"];
					if (this.NhanBiet != "0")
					{
						goto L_035C;
					}
					this.clrISN = this.clrISN1;
					this.clrNoiSoiISN = this.clrISN;
					goto L_0392;
					
				L_035C:
					
					{
					}
					this.clrISN = Convert.ToString (((int) (int.Parse (theDataTable.Rows[0][0].ToString ()) + 1)));
					this.clrNoiSoiISN = this.clrISN;
					
				L_0392:
					
					{
					}
					this.ID = this.tbID.Text.ToString ();
					theSqlDataAdapter.Dispose ();
					theArrayList = new ArrayList ();
					theArrayList2 = new ArrayList ();
					theArrayList3 = new ArrayList ();
					i = this.listView1.Items.Count;
					i2 = 0;
					goto L_04BF;
					
				L_03DE:
					
					{
					}
					theString6 = this.listView1.Items[i2].Text.ToString ();
					theString7 = (theColor = this.listView1.Items[i2].ForeColor).Name.ToString ();
					if (theString7 != "Red")
					{
						goto L_043F;
					}
					int i10 = theArrayList3.Add (0);
					
				L_043F:
					
					{
					}
					if (theString7 != "Blue")
					{
						goto L_045B;
					}
					int i11 = theArrayList3.Add (1);
					
				L_045B:
					
					{
					}
					if (theString7 != "Purple")
					{
						goto L_0477;
					}
					int i12 = theArrayList3.Add (2);
					
				L_0477:
					
					{
					}
					if (theString7 != "Green")
					{
						goto L_0493;
					}
					int i13 = theArrayList3.Add (3);
					
				L_0493:
					
					{
					}
					if (theString7 != "Gray")
					{
						goto L_04AF;
					}
					int i14 = theArrayList3.Add (4);
					
				L_04AF:
					
					{
					}
					int i15 = theArrayList.Add (theString6);
					i2++;
					
				L_04BF:
					
					{
					}
					if (i2 < i)
					{
						goto L_03DE;
					}
					i3 = 0;
					goto L_056F;
					
				L_04D0:
					
					{
					}
					theSqlCommand = new SqlCommand ("SELECT * FROM Sicks WHERE sckName=@sckName", theSqlConnection);
					theSqlParameter = new SqlParameter ("@sckName", SqlDbType.NVarChar);
					theSqlParameter.Value = theArrayList[i3].ToString ();
					SqlParameter theSqlParameter3 = theSqlCommand.Parameters.Add (theSqlParameter);
					theSqlDataAdapter2 = new SqlDataAdapter (theSqlCommand);
					theDataSet2 = new DataSet ();
					int i16 = theSqlDataAdapter2.Fill (theDataSet2, "Sicks");
					theDataTable2 = theDataSet2.Tables["Sicks"];
					int i17 = theArrayList2.Add (theDataTable2.Rows[0][0].ToString ());
					theSqlDataAdapter2.Dispose ();
					i3++;
					
				L_056F:
					
					{
					}
					if (i3 < theArrayList.Count)
					{
						goto L_04D0;
					}
					i4 = 0;
					goto L_0615;
					
				L_0585:
					
					{
					}
					theStringArray = new string[7];
					theStringArray[0] = "INSERT INTO ClinicalSicks VALUES(";
					theStringArray[1] = theArrayList2[i4].ToString ();
					theStringArray[2] = ", ";
					theStringArray[3] = this.clrISN;
					theStringArray[4] = ",";
					theStringArray[5] = theArrayList3[i4].ToString ();
					theStringArray[6] = ")";
					theSqlCommand2 = new SqlCommand (string.Concat (theStringArray), theSqlConnection);
					theSqlCommand2.Connection.Open ();
					int i18 = theSqlCommand2.ExecuteNonQuery ();
					theSqlCommand2.Connection.Close ();
					i4++;
					
				L_0615:
					
					{
					}
					if (i4 < theArrayList2.Count)
					{
						goto L_0585;
					}
					if (this.lbCD.Items.Count > 0)
					{
						goto L_06B0;
					}
					SqlConnection theSqlConnection2 = this.db.CreateConnections ();
					theStringArray2 = new string[2];
					theStringArray2[0] = "@clrISN";
					theStringArray2[1] = "@polPathologicalSignsOutList";
					theSqlDbTypeArray = new SqlDbType[2];
					theSqlDbTypeArray[0] = SqlDbType.Int;
					theSqlDbTypeArray[1] = SqlDbType.NVarChar;
					theObjectArray = new object[2];
					theObjectArray[0] = this.clrISN;
					theObjectArray[1] = this.tbCDNgoaiDS.Text.ToString ();
					this.db.ExecuteStoredProc ("sp_PathologicalOutList_Insert", theStringArray2, theSqlDbTypeArray, theObjectArray);
					goto L_08AF;
					
				L_06B0:
					
					{
					}
					theArrayList4 = new ArrayList ();
					theArrayList5 = new ArrayList ();
					i5 = this.lbCD.Items.Count;
					i6 = 0;
					goto L_06FA;
					
				L_06D5:
					
					{
					}
					int i19 = theArrayList4.Add (this.lbCD.Items[i6].ToString ());
					i6++;
					
				L_06FA:
					
					{
					}
					if (i6 < i5)
					{
						goto L_06D5;
					}
					i7 = 0;
					goto L_07A7;
					
				L_0708:
					
					{
					}
					theSqlCommand3 = new SqlCommand ("SELECT * FROM PathologicalSigns WHERE plsPathologicalSigns=@plsPathologicalSigns", theSqlConnection);
					theSqlParameter2 = new SqlParameter ("@plsPathologicalSigns", SqlDbType.NVarChar);
					theSqlParameter2.Value = theArrayList4[i7].ToString ();
					SqlParameter theSqlParameter4 = theSqlCommand3.Parameters.Add (theSqlParameter2);
					theSqlDataAdapter3 = new SqlDataAdapter (theSqlCommand3);
					theDataSet3 = new DataSet ();
					int i20 = theSqlDataAdapter3.Fill (theDataSet3, "Sicks");
					theDataTable3 = theDataSet3.Tables["Sicks"];
					int i21 = theArrayList5.Add (theDataTable3.Rows[0][0].ToString ());
					theSqlDataAdapter3.Dispose ();
					i7++;
					
				L_07A7:
					
					{
					}
					if (i7 < theArrayList4.Count)
					{
						goto L_0708;
					}
					i8 = 0;
					goto L_082F;
					
				L_07BA:
					
					{
					}
					theStringArray3 = new string[5];
					theStringArray3[0] = "INSERT INTO PathologicalClinical VALUES(";
					theStringArray3[1] = this.clrISN;
					theStringArray3[2] = ", ";
					theStringArray3[3] = theArrayList5[i8].ToString ();
					theStringArray3[4] = ")";
					theSqlCommand4 = new SqlCommand (string.Concat (theStringArray3), theSqlConnection);
					theSqlCommand4.Connection.Open ();
					int i22 = theSqlCommand4.ExecuteNonQuery ();
					theSqlCommand4.Connection.Close ();
					i8++;
					
				L_082F:
					
					{
					}
					if (i8 < theArrayList5.Count)
					{
						goto L_07BA;
					}
					SqlConnection theSqlConnection3 = this.db.CreateConnections ();
					theStringArray4 = new string[2];
					theStringArray4[0] = "@clrISN";
					theStringArray4[1] = "@polPathologicalSignsOutList";
					theSqlDbTypeArray2 = new SqlDbType[2];
					theSqlDbTypeArray2[0] = SqlDbType.Int;
					theSqlDbTypeArray2[1] = SqlDbType.NVarChar;
					theObjectArray2 = new object[2];
					theObjectArray2[0] = this.clrISN;
					theObjectArray2[1] = this.tbCDNgoaiDS.Text.ToString ();
					this.db.ExecuteStoredProc ("sp_PathologicalOutList_Insert", theStringArray4, theSqlDbTypeArray2, theObjectArray2);
					
				L_08AF:
					
					{
					}
					if (! this.rbMale.Checked)
					{
						goto L_08C5;
					}
					theString8 = "Nam";
					goto L_08CC;
					
				L_08C5:
					
					{
					}
					theString8 = "N?";
					
				L_08CC:
					
					{
					}
					theString9 = string.Empty;
					this.dtpBirthDay.CustomFormat = "MM/dd/yyyy";
					this.dtpNgayTaiKham.CustomFormat = "MM/dd/yyyy";
					this.dtpNgayKham.CustomFormat = "MM/dd/yyyy";
					this.dtpNgayHen.CustomFormat = "MM/dd/yyyy";
					theDateTime = ((DateTime) this.db.ExecuteScalar ("select getDate()"));
					theString10 = string.Empty;
					if (! this.txtTaiKham.Text.Equals ("0"))
					{
						goto L_0956;
					}
					theString10 = "0";
					goto L_095D;
					
				L_0956:
					
					{
					}
					theString10 = "1";
					
				L_095D:
					
					{
					}
					theStringArray5 = new string[29];
					theStringArray5[0] = "@patID";
					theStringArray5[1] = "@patName";
					theStringArray5[2] = "@patBirthDate";
					theStringArray5[3] = "@patAge";
					theStringArray5[4] = "@patSex";
					theStringArray5[5] = "@patAddress";
					theStringArray5[6] = "@patTel";
					theStringArray5[7] = "@patOccupation";
					theStringArray5[8] = "@empISN";
					theStringArray5[9] = "@clrPulse";
					theStringArray5[10] = "@clrTemperature";
					theStringArray5[11] = "@clrBloodPressure";
					theStringArray5[12] = "@clrWeigh";
					theStringArray5[13] = "@clrMedicalHistory";
					theStringArray5[14] = "@clrTest";
					theStringArray5[15] = "@clrSickNotInList";
					theStringArray5[16] = "@clrExaminationTimes";
					theStringArray5[17] = "@clrExaminationDate";
					theStringArray5[18] = "@clrSkill";
					theStringArray5[19] = "@clrMedicalAdvice";
					theStringArray5[20] = "@clrFollowUpExaminationDate";
					theStringArray5[21] = "@clrPicture";
					theStringArray5[22] = "@clrSurgery";
					theStringArray5[23] = "@patMobile";
					theStringArray5[24] = "@clrAppointmentDate";
					theStringArray5[25] = "@clrSickChange";
					theStringArray5[26] = "@clrSickHistory";
					theStringArray5[27] = "@clrRexaminationTimes";
					theStringArray5[28] = "@clrRexaminationStatus";
					theSqlDbTypeArray3 = new SqlDbType[29];
					theSqlDbTypeArray3[0] = SqlDbType.VarChar;
					theSqlDbTypeArray3[1] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[2] = SqlDbType.DateTime;
					theSqlDbTypeArray3[3] = SqlDbType.TinyInt;
					theSqlDbTypeArray3[4] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[5] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[6] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[7] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[8] = SqlDbType.Int;
					theSqlDbTypeArray3[9] = SqlDbType.Float;
					theSqlDbTypeArray3[10] = SqlDbType.Float;
					theSqlDbTypeArray3[11] = SqlDbType.VarChar;
					theSqlDbTypeArray3[12] = SqlDbType.Float;
					theSqlDbTypeArray3[13] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[14] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[15] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[16] = SqlDbType.Int;
					theSqlDbTypeArray3[17] = SqlDbType.DateTime;
					theSqlDbTypeArray3[18] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[19] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[20] = SqlDbType.DateTime;
					theSqlDbTypeArray3[21] = SqlDbType.VarChar;
					theSqlDbTypeArray3[22] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[23] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[24] = SqlDbType.DateTime;
					theSqlDbTypeArray3[25] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[26] = SqlDbType.NVarChar;
					theSqlDbTypeArray3[27] = SqlDbType.Int;
					theSqlDbTypeArray3[28] = SqlDbType.TinyInt;
					theObjectArray3 = new object[29];
					theObjectArray3[0] = this.tbID.Text.ToString ();
					theObjectArray3[1] = this.tbFullName.Text.ToString ();
					theObjectArray3[2] = this.dtpBirthDay.Text;
					theObjectArray3[3] = this.tbTuoi.Text.ToString ();
					theObjectArray3[4] = theString8;
					theObjectArray3[5] = this.tbAddress.Text.ToString ();
					theObjectArray3[6] = this.tbPhone.Text.ToString ();
					theObjectArray3[7] = this.tbJob.Text.ToString ();
					theObjectArray3[8] = this.cbBacSi.SelectedValue;
					theObjectArray3[9] = theString2;
					theObjectArray3[10] = theString3;
					theObjectArray3[11] = theString4;
					theObjectArray3[12] = theString5;
					theObjectArray3[13] = this.tbBenhSu.Text.ToString ();
					theObjectArray3[14] = "";
					theObjectArray3[15] = this.tbBenhNgoaiDS.Text.ToString ();
					theObjectArray3[16] = this.tbLanKham.Text.ToString ();
					theObjectArray3[17] = theDateTime.ToString ();
					theObjectArray3[18] = this.tbThuThuat.Text.ToString ();
					theObjectArray3[19] = this.tbLoiKhuyen.Text.ToString ();
					theObjectArray3[20] = this.dtpNgayTaiKham.Text;
					theObjectArray3[21] = "";
					theObjectArray3[22] = theString;
					theObjectArray3[23] = this.tbDiDong.Text.ToString ();
					theObjectArray3[24] = this.dtpNgayHen.Text;
					theObjectArray3[25] = this.tbDienBien.Text.ToString ();
					theObjectArray3[26] = this.tbBSu.Text.ToString ();
					theObjectArray3[27] = this.txtTaiKham.Text;
					theObjectArray3[28] = theString10;
					this.db.ExecuteStoredProc ("sp_Patients_ClinicalRecord_Insert", theStringArray5, theSqlDbTypeArray3, theObjectArray3);
					this.dtpNgayHen.CustomFormat = "dd/MM/yyyy";
					this.dtpBirthDay.CustomFormat = "dd/MM/yyyy";
					this.dtpNgayTaiKham.CustomFormat = "dd/MM/yyyy";
					this.dtpNgayKham.CustomFormat = "dd/MM/yyyy";
					this.Ten = this.tbFullName.Text.ToString ();
					this.btLuuBenhAn.Enabled = false;
					this.linkNoiSoi.LinkColor = Color.Blue;
					this.linkXetNghiem.LinkColor = Color.Blue;
					this.linkNoiSoi.Enabled = true;
					this.linkLabel1.Enabled = true;
					this.linkXetNghiem.Enabled = true;
					this.insertXetNghiem = true;
					this.NgayKham = this.dtpNgayKham.Text.ToString ();
					this.Insert = true;
					DialogResult theDialogResult7 = MessageBox.Show ("H? s? b?nh ?n ?? ???c l?u", "L?u h? s? b?nh ?n th?nh c?ng", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				catch (Exception theException2)
				{
					
				L_0DF8:
					theException = theException2;
					DialogResult theDialogResult8 = MessageBox.Show (theException.Message);
				}
				
			L_0E09:
				return;
			}
			
			private void btRemove_Click (object sender, EventArgs e)
			
			{
				this.listView1_DoubleClick (sender, e);
				return;
			}
			
			private void btRemoveChanDoan_Click (object sender, EventArgs e)
			
			{
				this.lbCD_DoubleClick (sender, e);
				return;
			}
			
			private void btTaiKham_Click (object sender, EventArgs e)
			
			{
				int i;
				int i2;
				string[] theStringArray;
				DateTime theDateTime;
				this.ThanhTien = "0";
				this.NhanBiet = string.Empty;
				theStringArray = new string[5];
				theStringArray[0] = this.day;
				theStringArray[1] = "/";
				theStringArray[2] = this.month;
				theStringArray[3] = "/";
				theStringArray[4] = this.year;
				this.ngayKham = string.Concat (theStringArray);
				this.tbLanKham.Visible = true;
				this.cbETimes.Visible = false;
				this.tbLanKham.Text = this.cbETimes.Text;
				i = this.cbETimes.FindString (this.tbLanKham.Text);
				this.cbETimes.SelectedIndex = i;
				this.cbETimes_SelectedIndexChanged (sender, e);
				this.cboTaiKham.Visible = false;
				this.txtTaiKham.Visible = true;
				if (this.cboTaiKham.Items.Count <= 0)
				{
					goto L_011B;
				}
				i2 = this.cboTaiKham.Items.Count;
				this.cboTaiKham.SelectedIndex = (i2 - 1);
				this.txtTaiKham.Text = Convert.ToString (((int) (int.Parse (this.cboTaiKham.Text) + 1)));
				goto L_012B;
				
			L_011B:
				
				{
				}
				this.txtTaiKham.Text = "1";
				
			L_012B:
				
				{
				}
				this.tbNgayKham.Text = this.ngayKham;
				this.dtpNgayKham.Visible = false;
				this.tbNgayKham.Visible = true;
				this.btCapNhat.Enabled = false;
				this.btLuuBenhAn.Visible = true;
				this.linkNoiSoi.Enabled = false;
				this.linkLabel1.Enabled = false;
				this.linkXetNghiem.Enabled = false;
				this.tbThuThuat.Text = "";
				this.tbPhauThuat.Text = "";
				this.tbLoiKhuyen.Text = "";
				this.cbBacSi.Visible = true;
				this.btLuuBenhAn.Enabled = true;
				this.btLapBenhAnMoi.Enabled = false;
				this.btTaiKham.Enabled = false;
				this.btCapNhat.Visible = false;
				this.tbDienBien.Text = "";
				this.tbMach.Text = "";
				this.tbNhietDo.Text = "";
				this.tbHuyetAp.Text = "";
				this.tbCanNang.Text = "";
				this.chkHetBenh.Checked = false;
				this.clrNoiSoiISN = string.Empty;
				this.dtpNgayTaiKham.CustomFormat = "MM/dd/yyyy";
				this.dtpNgayTaiKham.Text = (theDateTime = DateTime.Now).ToString ();
				this.dtpNgayTaiKham.CustomFormat = "dd/MM/yyyy";
				return;
			}
			
			private void btThanhTien_Click (object sender, EventArgs e)
			
			{
				this.ID = this.tbID.Text;
				this.Ten = this.tbFullName.Text;
				this.Tuoi = this.tbTuoi.Text;
				if (! this.rbMale.Checked)
				{
					goto L_004D;
				}
				this.Phai = "Nam";
				goto L_0058;
				
			L_004D:
				
				{
				}
				this.Phai = "N?";
				
			L_0058:
				
				{
				}
				this.NgheNghiep = this.tbJob.Text;
				this.DiaChi = this.tbAddress.Text;
				this.ThuThuat = this.tbThuThuat.Text;
				this.NgayKham = this.dtpNgayKham.Text;
				this.NgayTaiKham = this.dtpNgayTaiKham.Text;
				this.BacSi = this.cbBacSi.Text;
				this.btLuuBenhAn.Enabled = false;
				return;
			}
			
			private void btThoat_Click (object sender, EventArgs e)
			
			{
				base.Close ();
				return;
			}
			
			private void cbETimes_SelectedIndexChanged (object sender, EventArgs e)
			
			{
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				int i;
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				DataTable theDataTable;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				int i2;
				ListViewItem theListViewItem;
				string theString;
				SqlDataAdapter theSqlDataAdapter4;
				DataSet theDataSet4;
				int i3;
				SqlDataAdapter theSqlDataAdapter5;
				DataSet theDataSet5;
				SqlDataAdapter theSqlDataAdapter6;
				DataSet theDataSet6;
				string[] theStringArray;
				string[] theStringArray2;
				string[] theStringArray3;
				ListViewItem[] theListViewItemArray;
				theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT distinct clrRexaminationStatus, clrRexaminationTimes,clrPictureStatus FRO"
				+ "M ClinicalRecord WHERE patISN=", this.patISN, " and clrExaminationTimes = ", this.cbETimes.Text), this.connStr);
				theDataSet = new DataSet ();
				int i4 = theSqlDataAdapter.Fill (theDataSet, "ReExamination");
				theSqlDataAdapter.Dispose ();
				if ((theDataSet.Tables["ReExamination"].Rows[0]["clrRexaminationStatus"].ToString () != string.Empty) && (theDataSet.Tables["ReExamination"].Rows.Count != 0))
				{
					goto L_00C4;
				}
				
			L_0097:
				
				{
				}
				this.txtTaiKham.Text = "0";
				this.txtTaiKham.Visible = true;
				this.cboTaiKham.Visible = false;
				goto L_0302;
				
			L_00C4:
				
				{
				}
				this.btTaiKham.Enabled = true;
				this.txtTaiKham.Visible = false;
				this.cboTaiKham.Visible = true;
				this.cboTaiKham.Items.Clear ();
				this.cboTaiKham.ImageList = this.imageList1;
				i = 0;
				goto L_02C0;
				
			L_0110:
				
				{
				}
				if (theDataSet.Tables["ReExamination"].Rows[i]["clrPictureStatus"].ToString () != "0")
				{
					goto L_0186;
				}
				int i5 = this.cboTaiKham.Items.Add (theDataSet.Tables["ReExamination"].Rows[i]["clrRexaminationTimes"].ToString ());
				goto L_02BC;
				
			L_0186:
				
				{
				}
				if (theDataSet.Tables["ReExamination"].Rows[i]["clrPictureStatus"].ToString () != "1")
				{
					goto L_0202;
				}
				int i6 = this.cboTaiKham.Items.Add (new ImageComboItem (theDataSet.Tables["ReExamination"].Rows[i]["clrRexaminationTimes"].ToString (), 0));
				goto L_02BC;
				
			L_0202:
				
				{
				}
				if (theDataSet.Tables["ReExamination"].Rows[i]["clrPictureStatus"].ToString () != "2")
				{
					goto L_027B;
				}
				int i7 = this.cboTaiKham.Items.Add (new ImageComboItem (theDataSet.Tables["ReExamination"].Rows[i]["clrRexaminationTimes"].ToString (), 1));
				goto L_02BC;
				
			L_027B:
				
				{
				}
				int i8 = this.cboTaiKham.Items.Add (new ImageComboItem (theDataSet.Tables["ReExamination"].Rows[i]["clrRexaminationTimes"].ToString (), 2));
				
			L_02BC:
				
				{
				}
				i++;
				
			L_02C0:
				
				{
				}
				if (i < theDataSet.Tables["ReExamination"].Rows.Count)
				{
					goto L_0110;
				}
				this.cboTaiKham.SelectedIndex = (this.cboTaiKham.Items.Count - 1);
				goto L_0F29;
				
			L_0302:
				
				{
				}
				this.Insert = false;
				this.ThanhTien = "1";
				this.ToaThuoc = "1";
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlDataAdapter2 = new SqlDataAdapter (string.Concat ("SELECT patID, patName, patAge, patSex, patAddress, patTel, patOccupation, clrPul"
				+ "se, clrTemperature, clrBloodPressure, clrWeigh, clrMedicalHistory, clrTest, clrS"
				+ "ickNotInList, clrPathologicalSigns, clrExaminationTimes, clrSkill, clrDoctorPres"
				+ "cription, clrMedicalAdvice, DAY(patBirthDate) As NgaySinh, MONTH(patBirthDate) A"
				+ "s ThangSinh, YEAR(patBirthDate) As NamSinh, DAY(clrExaminationDate) As NgayKham,"
				+ " MONTH(clrExaminationDate) As ThangKham, YEAR(clrExaminationDate) As NamKham, DA"
				+ "Y(clrFollowUpExaminationDate) As NgayTaiKham, MONTH(clrFollowUpExaminationDate) "
				+ "As ThangTaiKham, YEAR(clrFollowUpExaminationDate) As NamTaiKham, empName, clrPic"
				+ "ture, clrISN, patMobile, clrSurgery, clrAppointmentDate, clrSickChange, clrSickH"
				+ "istory FROM vw_ClinicalRecord WHERE patISN=", this.patISN, " AND clrExaminationTimes=", this.cbETimes.Text), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i9 = theSqlDataAdapter2.Fill (theDataSet2, "vw_ClinicalRecord");
				theSqlDataAdapter2.Dispose ();
				if ((theDataSet2 != null) && ((theDataSet2.Tables.Count != 0) && (theDataSet2.Tables[0].Rows.Count != 0)))
				{
					goto L_03A0;
				}
				
			L_039B:
				
				{
				}
				goto L_0F29;
				
			L_03A0:
				
				{
				}
				theDataTable = theDataSet2.Tables["vw_ClinicalRecord"];
				this.dtpNgayHen.CustomFormat = "MM/dd/yyyy";
				this.tbNgayKham.Visible = false;
				this.dtpNgayKham.Visible = true;
				this.clrNoiSoiISN = theDataTable.Rows[0]["clrISN"].ToString ();
				this.tbID.Text = theDataTable.Rows[0]["patID"].ToString ();
				this.tbFullName.Text = theDataTable.Rows[0]["patName"].ToString ();
				this.tbTuoi.Text = theDataTable.Rows[0]["patAge"].ToString ();
				if (theDataTable.Rows[0]["patSex"].ToString () != "Nam")
				{
					goto L_04A8;
				}
				this.rbMale.Checked = true;
				goto L_04B4;
				
			L_04A8:
				
				{
				}
				this.rbFemale.Checked = true;
				
			L_04B4:
				
				{
				}
				this.tbAddress.Text = theDataTable.Rows[0]["patAddress"].ToString ();
				this.tbPhone.Text = theDataTable.Rows[0]["patTel"].ToString ();
				this.tbJob.Text = theDataTable.Rows[0]["patOccupation"].ToString ();
				if (theDataTable.Rows[0]["clrPulse"].ToString () != "0")
				{
					goto L_0563;
				}
				this.tbMach.Text = "";
				goto L_058A;
				
			L_0563:
				
				{
				}
				this.tbMach.Text = theDataTable.Rows[0]["clrPulse"].ToString ();
				
			L_058A:
				
				{
				}
				if (theDataTable.Rows[0]["clrTemperature"].ToString () != "0")
				{
					goto L_05C4;
				}
				this.tbNhietDo.Text = "";
				goto L_05EB;
				
			L_05C4:
				
				{
				}
				this.tbNhietDo.Text = theDataTable.Rows[0]["clrTemperature"].ToString ();
				
			L_05EB:
				
				{
				}
				if (theDataTable.Rows[0]["clrBloodPressure"].ToString () != "0")
				{
					goto L_0625;
				}
				this.tbHuyetAp.Text = "";
				goto L_064C;
				
			L_0625:
				
				{
				}
				this.tbHuyetAp.Text = theDataTable.Rows[0]["clrBloodPressure"].ToString ();
				
			L_064C:
				
				{
				}
				if (theDataTable.Rows[0]["clrWeigh"].ToString () != "0")
				{
					goto L_0686;
				}
				this.tbCanNang.Text = "";
				goto L_06AD;
				
			L_0686:
				
				{
				}
				this.tbCanNang.Text = theDataTable.Rows[0]["clrWeigh"].ToString ();
				
			L_06AD:
				
				{
				}
				this.tbBenhSu.Text = theDataTable.Rows[0]["clrMedicalHistory"].ToString ();
				this.tbBenhNgoaiDS.Text = theDataTable.Rows[0]["clrSickNotInList"].ToString ();
				this.tbThuThuat.Text = theDataTable.Rows[0]["clrSkill"].ToString ();
				this.tbLoiKhuyen.Text = theDataTable.Rows[0]["clrMedicalAdvice"].ToString ();
				if (theDataTable.Rows[0]["empName"].ToString ().Trim () != "")
				{
					goto L_0790;
				}
				this.cbBacSi.SelectedIndex = -1;
				this.linkLabel1.Enabled = false;
				goto L_07CE;
				
			L_0790:
				
				{
				}
				this.cbBacSi.SelectedIndex = this.cbBacSi.FindString (theDataTable.Rows[0]["empName"].ToString ());
				this.linkLabel1.Enabled = true;
				
			L_07CE:
				
				{
				}
				theStringArray = new string[5];
				theStringArray[0] = theDataTable.Rows[0]["ThangSinh"].ToString ();
				theStringArray[1] = "/";
				theStringArray[2] = theDataTable.Rows[0]["NgaySinh"].ToString ();
				theStringArray[3] = "/";
				theStringArray[4] = theDataTable.Rows[0]["NamSinh"].ToString ();
				this.dtpBirthDay.Text = string.Concat (theStringArray);
				theStringArray2 = new string[5];
				theStringArray2[0] = theDataTable.Rows[0]["ThangKham"].ToString ();
				theStringArray2[1] = "/";
				theStringArray2[2] = theDataTable.Rows[0]["NgayKham"].ToString ();
				theStringArray2[3] = "/";
				theStringArray2[4] = theDataTable.Rows[0]["NamKham"].ToString ();
				this.dtpNgayKham.Text = string.Concat (theStringArray2);
				theStringArray3 = new string[5];
				theStringArray3[0] = theDataTable.Rows[0]["ThangTaiKham"].ToString ();
				theStringArray3[1] = "/";
				theStringArray3[2] = theDataTable.Rows[0]["NgayTaiKham"].ToString ();
				theStringArray3[3] = "/";
				theStringArray3[4] = theDataTable.Rows[0]["NamTaiKham"].ToString ();
				this.dtpNgayTaiKham.Text = string.Concat (theStringArray3);
				this.ImagePath = theDataTable.Rows[0]["clrPicture"].ToString ();
				this.clrImageISN = theDataTable.Rows[0]["clrISN"].ToString ();
				this.tbDiDong.Text = theDataTable.Rows[0]["patMobile"].ToString ();
				this.tbPhauThuat.Text = theDataTable.Rows[0]["clrSurgery"].ToString ();
				this.tbBSu.Text = theDataTable.Rows[0]["clrSickHistory"].ToString ();
				if ((theDataTable.Rows[0]["clrSurgery"].ToString () != "NULL") && ((theDataTable.Rows[0]["clrSurgery"].ToString () != string.Empty) && (theDataTable.Rows[0]["clrSurgery"].ToString () != "")))
				{
					goto L_0AB1;
				}
				
			L_0AA3:
				
				{
				}
				this.checkBox1.Checked = false;
				goto L_0AE4;
				
			L_0AB1:
				
				{
				}
				this.checkBox1.Checked = true;
				this.dtpNgayHen.Text = theDataTable.Rows[0]["clrAppointmentDate"].ToString ();
				
			L_0AE4:
				
				{
				}
				this.tbDienBien.Text = theDataTable.Rows[0]["clrSickChange"].ToString ();
				theSqlDataAdapter3 = new SqlDataAdapter (string.Concat ("SELECT * FROM vw_ClinicalSicks WHERE clrExaminationTimes=", this.cbETimes.Text, " AND patISN=", this.patISN), theSqlConnection);
				theDataSet3 = new DataSet ();
				int i10 = theSqlDataAdapter3.Fill (theDataSet3, "vw_ClinicalSicks");
				theSqlDataAdapter3.Dispose ();
				if (theDataSet3 == null)
				{
					goto L_0F29;
				}
				
			L_0B59:
				
				{
				}
				this.listView1.Items.Clear ();
				i2 = 0;
				goto L_0C7A;
				
			L_0B71:
				
				{
				}
				theListViewItem = new ListViewItem (theDataSet3.Tables["vw_ClinicalSicks"].Rows[i2]["sckName"].ToString ());
				theString = theDataSet3.Tables["vw_ClinicalSicks"].Rows[i2]["sckSickLevel"].ToString ();
				if (theString != "0")
				{
					goto L_0BEC;
				}
				theListViewItem.ForeColor = Color.Red;
				
			L_0BEC:
				
				{
				}
				if (theString != "1")
				{
					goto L_0C06;
				}
				theListViewItem.ForeColor = Color.Blue;
				
			L_0C06:
				
				{
				}
				if (theString != "2")
				{
					goto L_0C20;
				}
				theListViewItem.ForeColor = Color.Purple;
				
			L_0C20:
				
				{
				}
				if (theString != "3")
				{
					goto L_0C3A;
				}
				theListViewItem.ForeColor = Color.Green;
				
			L_0C3A:
				
				{
				}
				if (theString != "4")
				{
					goto L_0C54;
				}
				theListViewItem.ForeColor = Color.Gray;
				
			L_0C54:
				
				{
				}
				theListViewItemArray = new ListViewItem[1];
				theListViewItemArray[0] = theListViewItem;
				this.listView1.Items.AddRange (theListViewItemArray);
				i2++;
				
			L_0C7A:
				
				{
				}
				if (i2 < theDataSet3.Tables["vw_ClinicalSicks"].Rows.Count)
				{
					goto L_0B71;
				}
				theSqlDataAdapter4 = new SqlDataAdapter (string.Concat ("SELECT * FROM vw_PathologicalClinical WHERE clrExaminationTimes=", this.cbETimes.Text, " AND patISN=", this.patISN), theSqlConnection);
				theDataSet4 = new DataSet ();
				int i11 = theSqlDataAdapter4.Fill (theDataSet4, "vw_PathologicalClinical");
				theSqlDataAdapter4.Dispose ();
				if (theDataSet4 != null)
				{
					goto L_0CF3;
				}
				this.linkLabel1.Enabled = false;
				goto L_0D6A;
				
			L_0CF3:
				
				{
				}
				this.lbCD.Items.Clear ();
				i3 = 0;
				goto L_0D4B;
				
			L_0D08:
				
				{
				}
				int i12 = this.lbCD.Items.Add (theDataSet4.Tables["vw_PathologicalClinical"].Rows[i3]["plsPathologicalSigns"].ToString ());
				i3++;
				
			L_0D4B:
				
				{
				}
				if (i3 < theDataSet4.Tables["vw_PathologicalClinical"].Rows.Count)
				{
					goto L_0D08;
				}
				
			L_0D6A:
				
				{
				}
				this.tbCDNgoaiDS.Text = theDataSet4.Tables["vw_PathologicalClinical"].Rows[0]["polPathologicalSignsOutList"].ToString ();
				this.dtpNgayHen.CustomFormat = "dd/MM/yyyy";
				this.insertXetNghiem = false;
				this.linkXetNghiem.Enabled = true;
				this.NgayKham = this.dtpNgayKham.Text.ToString ();
				if (this.KTKhoiBenh ())
				{
					goto L_0DFB;
				}
				this.chkHetBenh.Checked = true;
				this.btCapNhat.Enabled = false;
				goto L_0E13;
				
			L_0DFB:
				
				{
				}
				this.chkHetBenh.Checked = false;
				this.btCapNhat.Enabled = true;
				
			L_0E13:
				
				{
				}
				theSqlDataAdapter5 = new SqlDataAdapter (string.Concat ("SELECT nlpISN FROM vw_AnalyzeResult WHERE clrISN=", this.clrNoiSoiISN), this.connStr);
				theDataSet5 = new DataSet ();
				int i13 = theSqlDataAdapter5.Fill (theDataSet5, "vw_AnalyzeResult");
				theSqlDataAdapter5.Dispose ();
				if ((theDataSet5 != null) && ((theDataSet5.Tables.Count != 0) && (theDataSet5.Tables["vw_AnalyzeResult"].Rows.Count != 0)))
				{
					goto L_0E8E;
				}
				
			L_0E7C:
				
				{
				}
				this.linkXetNghiem.LinkColor = Color.Blue;
				goto L_0E9E;
				
			L_0E8E:
				
				{
				}
				this.linkXetNghiem.LinkColor = Color.DarkGoldenrod;
				
			L_0E9E:
				
				{
				}
				theSqlDataAdapter6 = new SqlDataAdapter (string.Concat ("SELECT * FROM vw_ScanResult_InnerScan WHERE clrISN=", this.clrNoiSoiISN), this.connStr);
				theDataSet6 = new DataSet ();
				int i14 = theSqlDataAdapter6.Fill (theDataSet6, "vw_ScanResult_InnerScan");
				theSqlDataAdapter6.Dispose ();
				if (theDataSet6 == null)
				{
					goto L_0F07;
				}
				if (theDataSet6.Tables.Count == 0)
				{
					goto L_0F07;
				}
				if (theDataSet6.Tables["vw_ScanResult_InnerScan"].Rows.Count != 0)
				{
					goto L_0F19;
				}
				
			L_0F07:
				
				{
				}
				this.linkNoiSoi.LinkColor = Color.Blue;
				goto L_0F29;
				
			L_0F19:
				
				{
				}
				this.linkNoiSoi.LinkColor = Color.DarkGoldenrod;
				
			L_0F29:
				return;
			}
			
			private void cboTaiKham_SelectedIndexChanged (object sender, EventArgs e)
			
			{
				string theString;
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				int i;
				ListViewItem theListViewItem;
				string theString2;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				int i2;
				SqlDataAdapter theSqlDataAdapter4;
				DataSet theDataSet4;
				SqlDataAdapter theSqlDataAdapter5;
				DataSet theDataSet5;
				string[] theStringArray;
				string[] theStringArray2;
				string[] theStringArray3;
				string[] theStringArray4;
				string[] theStringArray5;
				ListViewItem[] theListViewItemArray;
				string[] theStringArray6;
				theString = string.Empty;
				theString = string.Concat (" and clrRexaminationTimes = ", this.cboTaiKham.Text);
				this.Insert = false;
				this.ThanhTien = "1";
				this.ToaThuoc = "1";
				theSqlConnection = new SqlConnection (this.connStr);
				theStringArray = new string[5];
				theStringArray[0] = "SELECT patID, patName, patAge, patSex, patAddress, patTel, patOccupation, clrPul"
				+ "se, clrTemperature, clrBloodPressure, clrWeigh, clrMedicalHistory, clrTest, clrS"
				+ "ickNotInList, clrPathologicalSigns, clrExaminationTimes, clrSkill, clrDoctorPres"
				+ "cription, clrMedicalAdvice, DAY(patBirthDate) As NgaySinh, MONTH(patBirthDate) A"
				+ "s ThangSinh, YEAR(patBirthDate) As NamSinh, DAY(clrExaminationDate) As NgayKham,"
				+ " MONTH(clrExaminationDate) As ThangKham, YEAR(clrExaminationDate) As NamKham, DA"
				+ "Y(clrFollowUpExaminationDate) As NgayTaiKham, MONTH(clrFollowUpExaminationDate) "
				+ "As ThangTaiKham, YEAR(clrFollowUpExaminationDate) As NamTaiKham, empName, clrPic"
				+ "ture, clrISN, patMobile, clrSurgery, clrAppointmentDate, clrSickChange, clrSickH"
				+ "istory FROM vw_ClinicalRecord WHERE patISN=";
				theStringArray[1] = this.patISN;
				theStringArray[2] = " AND clrExaminationTimes=";
				theStringArray[3] = this.cbETimes.Text;
				theStringArray[4] = theString;
				theSqlDataAdapter = new SqlDataAdapter (string.Concat (theStringArray), theSqlConnection);
				theDataSet = new DataSet ();
				int i3 = theSqlDataAdapter.Fill (theDataSet, "vw_ClinicalRecord");
				theSqlDataAdapter.Dispose ();
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables[0].Rows.Count != 0)))
				{
					goto L_00D1;
				}
				
			L_00CC:
				
				{
				}
				goto L_0CDA;
				
			L_00D1:
				
				{
				}
				theDataTable = theDataSet.Tables["vw_ClinicalRecord"];
				this.dtpNgayHen.CustomFormat = "MM/dd/yyyy";
				this.tbNgayKham.Visible = false;
				this.dtpNgayKham.Visible = true;
				this.clrNoiSoiISN = theDataTable.Rows[0]["clrISN"].ToString ();
				this.tbID.Text = theDataTable.Rows[0]["patID"].ToString ();
				this.tbFullName.Text = theDataTable.Rows[0]["patName"].ToString ();
				this.tbTuoi.Text = theDataTable.Rows[0]["patAge"].ToString ();
				if (theDataTable.Rows[0]["patSex"].ToString () != "Nam")
				{
					goto L_01D8;
				}
				this.rbMale.Checked = true;
				goto L_01E4;
				
			L_01D8:
				
				{
				}
				this.rbFemale.Checked = true;
				
			L_01E4:
				
				{
				}
				this.tbAddress.Text = theDataTable.Rows[0]["patAddress"].ToString ();
				this.tbPhone.Text = theDataTable.Rows[0]["patTel"].ToString ();
				this.tbJob.Text = theDataTable.Rows[0]["patOccupation"].ToString ();
				if (theDataTable.Rows[0]["clrPulse"].ToString () != "0")
				{
					goto L_0293;
				}
				this.tbMach.Text = "";
				goto L_02BA;
				
			L_0293:
				
				{
				}
				this.tbMach.Text = theDataTable.Rows[0]["clrPulse"].ToString ();
				
			L_02BA:
				
				{
				}
				if (theDataTable.Rows[0]["clrTemperature"].ToString () != "0")
				{
					goto L_02F4;
				}
				this.tbNhietDo.Text = "";
				goto L_031B;
				
			L_02F4:
				
				{
				}
				this.tbNhietDo.Text = theDataTable.Rows[0]["clrTemperature"].ToString ();
				
			L_031B:
				
				{
				}
				if (theDataTable.Rows[0]["clrBloodPressure"].ToString () != "0")
				{
					goto L_0355;
				}
				this.tbHuyetAp.Text = "";
				goto L_037C;
				
			L_0355:
				
				{
				}
				this.tbHuyetAp.Text = theDataTable.Rows[0]["clrBloodPressure"].ToString ();
				
			L_037C:
				
				{
				}
				if (theDataTable.Rows[0]["clrWeigh"].ToString () != "0")
				{
					goto L_03B6;
				}
				this.tbCanNang.Text = "";
				goto L_03DD;
				
			L_03B6:
				
				{
				}
				this.tbCanNang.Text = theDataTable.Rows[0]["clrWeigh"].ToString ();
				
			L_03DD:
				
				{
				}
				this.tbBenhSu.Text = theDataTable.Rows[0]["clrMedicalHistory"].ToString ();
				this.tbBenhNgoaiDS.Text = theDataTable.Rows[0]["clrSickNotInList"].ToString ();
				this.tbThuThuat.Text = theDataTable.Rows[0]["clrSkill"].ToString ();
				this.tbLoiKhuyen.Text = theDataTable.Rows[0]["clrMedicalAdvice"].ToString ();
				if (theDataTable.Rows[0]["empName"].ToString ().Trim () != "")
				{
					goto L_04C0;
				}
				this.cbBacSi.SelectedIndex = -1;
				this.linkLabel1.Enabled = false;
				goto L_04FE;
				
			L_04C0:
				
				{
				}
				this.cbBacSi.SelectedIndex = this.cbBacSi.FindString (theDataTable.Rows[0]["empName"].ToString ());
				this.linkLabel1.Enabled = true;
				
			L_04FE:
				
				{
				}
				theStringArray2 = new string[5];
				theStringArray2[0] = theDataTable.Rows[0]["ThangSinh"].ToString ();
				theStringArray2[1] = "/";
				theStringArray2[2] = theDataTable.Rows[0]["NgaySinh"].ToString ();
				theStringArray2[3] = "/";
				theStringArray2[4] = theDataTable.Rows[0]["NamSinh"].ToString ();
				this.dtpBirthDay.Text = string.Concat (theStringArray2);
				theStringArray3 = new string[5];
				theStringArray3[0] = theDataTable.Rows[0]["ThangKham"].ToString ();
				theStringArray3[1] = "/";
				theStringArray3[2] = theDataTable.Rows[0]["NgayKham"].ToString ();
				theStringArray3[3] = "/";
				theStringArray3[4] = theDataTable.Rows[0]["NamKham"].ToString ();
				this.dtpNgayKham.Text = string.Concat (theStringArray3);
				theStringArray4 = new string[5];
				theStringArray4[0] = theDataTable.Rows[0]["ThangTaiKham"].ToString ();
				theStringArray4[1] = "/";
				theStringArray4[2] = theDataTable.Rows[0]["NgayTaiKham"].ToString ();
				theStringArray4[3] = "/";
				theStringArray4[4] = theDataTable.Rows[0]["NamTaiKham"].ToString ();
				this.dtpNgayTaiKham.Text = string.Concat (theStringArray4);
				this.ImagePath = theDataTable.Rows[0]["clrPicture"].ToString ();
				this.clrImageISN = theDataTable.Rows[0]["clrISN"].ToString ();
				this.tbDiDong.Text = theDataTable.Rows[0]["patMobile"].ToString ();
				this.tbPhauThuat.Text = theDataTable.Rows[0]["clrSurgery"].ToString ();
				this.tbBSu.Text = theDataTable.Rows[0]["clrSickHistory"].ToString ();
				if ((theDataTable.Rows[0]["clrSurgery"].ToString () != "NULL") && ((theDataTable.Rows[0]["clrSurgery"].ToString () != string.Empty) && (theDataTable.Rows[0]["clrSurgery"].ToString () != "")))
				{
					goto L_07E1;
				}
				
			L_07D3:
				
				{
				}
				this.checkBox1.Checked = false;
				goto L_0814;
				
			L_07E1:
				
				{
				}
				this.checkBox1.Checked = true;
				this.dtpNgayHen.Text = theDataTable.Rows[0]["clrAppointmentDate"].ToString ();
				
			L_0814:
				
				{
				}
				this.tbDienBien.Text = theDataTable.Rows[0]["clrSickChange"].ToString ();
				theStringArray5 = new string[5];
				theStringArray5[0] = "SELECT * FROM vw_ClinicalSicks WHERE clrExaminationTimes=";
				theStringArray5[1] = this.cbETimes.Text;
				theStringArray5[2] = " AND patISN=";
				theStringArray5[3] = this.patISN;
				theStringArray5[4] = theString;
				theSqlDataAdapter2 = new SqlDataAdapter (string.Concat (theStringArray5), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i4 = theSqlDataAdapter2.Fill (theDataSet2, "vw_ClinicalSicks");
				theSqlDataAdapter2.Dispose ();
				if (theDataSet2 == null)
				{
					goto L_0CDA;
				}
				
			L_08A8:
				
				{
				}
				this.listView1.Items.Clear ();
				i = 0;
				goto L_09C9;
				
			L_08C0:
				
				{
				}
				theListViewItem = new ListViewItem (theDataSet2.Tables["vw_ClinicalSicks"].Rows[i]["sckName"].ToString ());
				theString2 = theDataSet2.Tables["vw_ClinicalSicks"].Rows[i]["sckSickLevel"].ToString ();
				if (theString2 != "0")
				{
					goto L_093B;
				}
				theListViewItem.ForeColor = Color.Red;
				
			L_093B:
				
				{
				}
				if (theString2 != "1")
				{
					goto L_0955;
				}
				theListViewItem.ForeColor = Color.Blue;
				
			L_0955:
				
				{
				}
				if (theString2 != "2")
				{
					goto L_096F;
				}
				theListViewItem.ForeColor = Color.Purple;
				
			L_096F:
				
				{
				}
				if (theString2 != "3")
				{
					goto L_0989;
				}
				theListViewItem.ForeColor = Color.Green;
				
			L_0989:
				
				{
				}
				if (theString2 != "4")
				{
					goto L_09A3;
				}
				theListViewItem.ForeColor = Color.Gray;
				
			L_09A3:
				
				{
				}
				theListViewItemArray = new ListViewItem[1];
				theListViewItemArray[0] = theListViewItem;
				this.listView1.Items.AddRange (theListViewItemArray);
				i++;
				
			L_09C9:
				
				{
				}
				if (i < theDataSet2.Tables["vw_ClinicalSicks"].Rows.Count)
				{
					goto L_08C0;
				}
				theStringArray6 = new string[5];
				theStringArray6[0] = "SELECT * FROM vw_PathologicalClinical WHERE clrExaminationTimes=";
				theStringArray6[1] = this.cbETimes.Text;
				theStringArray6[2] = " AND patISN = ";
				theStringArray6[3] = this.patISN;
				theStringArray6[4] = theString;
				theSqlDataAdapter3 = new SqlDataAdapter (string.Concat (theStringArray6), theSqlConnection);
				theDataSet3 = new DataSet ();
				int i5 = theSqlDataAdapter3.Fill (theDataSet3, "vw_PathologicalClinical");
				theSqlDataAdapter3.Dispose ();
				if ((theDataSet3 != null) && (theDataSet3.Tables["vw_PathologicalClinical"].Rows[0]["plsPathologicalSigns"].ToString () != ""))
				{
					goto L_0A98;
				}
				
			L_0A8A:
				
				{
				}
				this.linkLabel1.Enabled = false;
				goto L_0B0F;
				
			L_0A98:
				
				{
				}
				this.lbCD.Items.Clear ();
				i2 = 0;
				goto L_0AF0;
				
			L_0AAD:
				
				{
				}
				int i6 = this.lbCD.Items.Add (theDataSet3.Tables["vw_PathologicalClinical"].Rows[i2]["plsPathologicalSigns"].ToString ());
				i2++;
				
			L_0AF0:
				
				{
				}
				if (i2 < theDataSet3.Tables["vw_PathologicalClinical"].Rows.Count)
				{
					goto L_0AAD;
				}
				
			L_0B0F:
				
				{
				}
				this.btTaiKham.Enabled = true;
				this.tbCDNgoaiDS.Text = theDataSet3.Tables["vw_PathologicalClinical"].Rows[0]["polPathologicalSignsOutList"].ToString ();
				this.dtpNgayHen.CustomFormat = "dd/MM/yyyy";
				this.insertXetNghiem = false;
				this.linkXetNghiem.Enabled = true;
				this.NgayKham = this.dtpNgayKham.Text.ToString ();
				if (this.KTKhoiBenh ())
				{
					goto L_0BAC;
				}
				this.chkHetBenh.Checked = true;
				this.btCapNhat.Enabled = false;
				goto L_0BC4;
				
			L_0BAC:
				
				{
				}
				this.chkHetBenh.Checked = false;
				this.btCapNhat.Enabled = true;
				
			L_0BC4:
				
				{
				}
				theSqlDataAdapter4 = new SqlDataAdapter (string.Concat ("SELECT nlpISN FROM vw_AnalyzeResult WHERE clrISN=", this.clrNoiSoiISN), this.connStr);
				theDataSet4 = new DataSet ();
				int i7 = theSqlDataAdapter4.Fill (theDataSet4, "vw_AnalyzeResult");
				theSqlDataAdapter4.Dispose ();
				if ((theDataSet4 != null) && ((theDataSet4.Tables.Count != 0) && (theDataSet4.Tables["vw_AnalyzeResult"].Rows.Count != 0)))
				{
					goto L_0C3F;
				}
				
			L_0C2D:
				
				{
				}
				this.linkXetNghiem.LinkColor = Color.Blue;
				goto L_0C4F;
				
			L_0C3F:
				
				{
				}
				this.linkXetNghiem.LinkColor = Color.DarkGoldenrod;
				
			L_0C4F:
				
				{
				}
				theSqlDataAdapter5 = new SqlDataAdapter (string.Concat ("SELECT * FROM vw_ScanResult_InnerScan WHERE clrISN=", this.clrNoiSoiISN), this.connStr);
				theDataSet5 = new DataSet ();
				int i8 = theSqlDataAdapter5.Fill (theDataSet5, "vw_ScanResult_InnerScan");
				theSqlDataAdapter5.Dispose ();
				if (theDataSet5 == null)
				{
					goto L_0CB8;
				}
				if (theDataSet5.Tables.Count == 0)
				{
					goto L_0CB8;
				}
				if (theDataSet5.Tables["vw_ScanResult_InnerScan"].Rows.Count != 0)
				{
					goto L_0CCA;
				}
				
			L_0CB8:
				
				{
				}
				this.linkNoiSoi.LinkColor = Color.Blue;
				goto L_0CDA;
				
			L_0CCA:
				
				{
				}
				this.linkNoiSoi.LinkColor = Color.DarkGoldenrod;
				
			L_0CDA:
				return;
			}
			
			private void chbBAGoc_CheckedChanged (object sender, EventArgs e)
			
			{
				string theString;
				int i;
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				int i2;
				ListViewItem theListViewItem;
				string theString2;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				int i3;
				SqlDataAdapter theSqlDataAdapter4;
				DataSet theDataSet4;
				SqlDataAdapter theSqlDataAdapter5;
				DataSet theDataSet5;
				string[] theStringArray;
				string[] theStringArray2;
				string[] theStringArray3;
				string[] theStringArray4;
				string[] theStringArray5;
				ListViewItem[] theListViewItemArray;
				string[] theStringArray6;
				theString = string.Empty;
				if (! this.chbBAGoc.Checked)
				{
					goto L_0027;
				}
				theString = " and clrRexaminationTimes = 0";
				this.cboTaiKham.SelectedIndex = 0;
				goto L_0065;
				
			L_0027:
				
				{
				}
				if (this.chbBAGoc.Checked)
				{
					goto L_0065;
				}
				theString = string.Concat (" and clrRexaminationTimes = ", (i = (this.cboTaiKham.Items.Count - 1)).ToString ());
				this.cboTaiKham.SelectedIndex = i;
				
			L_0065:
				
				{
				}
				this.Insert = false;
				this.ThanhTien = "1";
				this.ToaThuoc = "1";
				theSqlConnection = new SqlConnection (this.connStr);
				theStringArray = new string[5];
				theStringArray[0] = "SELECT patID, patName, patAge, patSex, patAddress, patTel, patOccupation, clrPul"
				+ "se, clrTemperature, clrBloodPressure, clrWeigh, clrMedicalHistory, clrTest, clrS"
				+ "ickNotInList, clrPathologicalSigns, clrExaminationTimes, clrSkill, clrDoctorPres"
				+ "cription, clrMedicalAdvice, DAY(patBirthDate) As NgaySinh, MONTH(patBirthDate) A"
				+ "s ThangSinh, YEAR(patBirthDate) As NamSinh, DAY(clrExaminationDate) As NgayKham,"
				+ " MONTH(clrExaminationDate) As ThangKham, YEAR(clrExaminationDate) As NamKham, DA"
				+ "Y(clrFollowUpExaminationDate) As NgayTaiKham, MONTH(clrFollowUpExaminationDate) "
				+ "As ThangTaiKham, YEAR(clrFollowUpExaminationDate) As NamTaiKham, empName, clrPic"
				+ "ture, clrISN, patMobile, clrSurgery, clrAppointmentDate, clrSickChange, clrSickH"
				+ "istory FROM vw_ClinicalRecord WHERE patISN=";
				theStringArray[1] = this.patISN;
				theStringArray[2] = " AND clrExaminationTimes=";
				theStringArray[3] = this.cbETimes.Text;
				theStringArray[4] = theString;
				theSqlDataAdapter = new SqlDataAdapter (string.Concat (theStringArray), theSqlConnection);
				theDataSet = new DataSet ();
				int i4 = theSqlDataAdapter.Fill (theDataSet, "vw_ClinicalRecord");
				theSqlDataAdapter.Dispose ();
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables[0].Rows.Count != 0)))
				{
					goto L_011F;
				}
				
			L_011A:
				
				{
				}
				goto L_0D29;
				
			L_011F:
				
				{
				}
				theDataTable = theDataSet.Tables["vw_ClinicalRecord"];
				this.dtpNgayHen.CustomFormat = "MM/dd/yyyy";
				this.tbNgayKham.Visible = false;
				this.dtpNgayKham.Visible = true;
				this.clrNoiSoiISN = theDataTable.Rows[0]["clrISN"].ToString ();
				this.tbID.Text = theDataTable.Rows[0]["patID"].ToString ();
				this.tbFullName.Text = theDataTable.Rows[0]["patName"].ToString ();
				this.tbTuoi.Text = theDataTable.Rows[0]["patAge"].ToString ();
				if (theDataTable.Rows[0]["patSex"].ToString () != "Nam")
				{
					goto L_0227;
				}
				this.rbMale.Checked = true;
				goto L_0233;
				
			L_0227:
				
				{
				}
				this.rbFemale.Checked = true;
				
			L_0233:
				
				{
				}
				this.tbAddress.Text = theDataTable.Rows[0]["patAddress"].ToString ();
				this.tbPhone.Text = theDataTable.Rows[0]["patTel"].ToString ();
				this.tbJob.Text = theDataTable.Rows[0]["patOccupation"].ToString ();
				if (theDataTable.Rows[0]["clrPulse"].ToString () != "0")
				{
					goto L_02E2;
				}
				this.tbMach.Text = "";
				goto L_0309;
				
			L_02E2:
				
				{
				}
				this.tbMach.Text = theDataTable.Rows[0]["clrPulse"].ToString ();
				
			L_0309:
				
				{
				}
				if (theDataTable.Rows[0]["clrTemperature"].ToString () != "0")
				{
					goto L_0343;
				}
				this.tbNhietDo.Text = "";
				goto L_036A;
				
			L_0343:
				
				{
				}
				this.tbNhietDo.Text = theDataTable.Rows[0]["clrTemperature"].ToString ();
				
			L_036A:
				
				{
				}
				if (theDataTable.Rows[0]["clrBloodPressure"].ToString () != "0")
				{
					goto L_03A4;
				}
				this.tbHuyetAp.Text = "";
				goto L_03CB;
				
			L_03A4:
				
				{
				}
				this.tbHuyetAp.Text = theDataTable.Rows[0]["clrBloodPressure"].ToString ();
				
			L_03CB:
				
				{
				}
				if (theDataTable.Rows[0]["clrWeigh"].ToString () != "0")
				{
					goto L_0405;
				}
				this.tbCanNang.Text = "";
				goto L_042C;
				
			L_0405:
				
				{
				}
				this.tbCanNang.Text = theDataTable.Rows[0]["clrWeigh"].ToString ();
				
			L_042C:
				
				{
				}
				this.tbBenhSu.Text = theDataTable.Rows[0]["clrMedicalHistory"].ToString ();
				this.tbBenhNgoaiDS.Text = theDataTable.Rows[0]["clrSickNotInList"].ToString ();
				this.tbThuThuat.Text = theDataTable.Rows[0]["clrSkill"].ToString ();
				this.tbLoiKhuyen.Text = theDataTable.Rows[0]["clrMedicalAdvice"].ToString ();
				if (theDataTable.Rows[0]["empName"].ToString ().Trim () != "")
				{
					goto L_050F;
				}
				this.cbBacSi.SelectedIndex = -1;
				this.linkLabel1.Enabled = false;
				goto L_054D;
				
			L_050F:
				
				{
				}
				this.cbBacSi.SelectedIndex = this.cbBacSi.FindString (theDataTable.Rows[0]["empName"].ToString ());
				this.linkLabel1.Enabled = true;
				
			L_054D:
				
				{
				}
				theStringArray2 = new string[5];
				theStringArray2[0] = theDataTable.Rows[0]["ThangSinh"].ToString ();
				theStringArray2[1] = "/";
				theStringArray2[2] = theDataTable.Rows[0]["NgaySinh"].ToString ();
				theStringArray2[3] = "/";
				theStringArray2[4] = theDataTable.Rows[0]["NamSinh"].ToString ();
				this.dtpBirthDay.Text = string.Concat (theStringArray2);
				theStringArray3 = new string[5];
				theStringArray3[0] = theDataTable.Rows[0]["ThangKham"].ToString ();
				theStringArray3[1] = "/";
				theStringArray3[2] = theDataTable.Rows[0]["NgayKham"].ToString ();
				theStringArray3[3] = "/";
				theStringArray3[4] = theDataTable.Rows[0]["NamKham"].ToString ();
				this.dtpNgayKham.Text = string.Concat (theStringArray3);
				theStringArray4 = new string[5];
				theStringArray4[0] = theDataTable.Rows[0]["ThangTaiKham"].ToString ();
				theStringArray4[1] = "/";
				theStringArray4[2] = theDataTable.Rows[0]["NgayTaiKham"].ToString ();
				theStringArray4[3] = "/";
				theStringArray4[4] = theDataTable.Rows[0]["NamTaiKham"].ToString ();
				this.dtpNgayTaiKham.Text = string.Concat (theStringArray4);
				this.ImagePath = theDataTable.Rows[0]["clrPicture"].ToString ();
				this.clrImageISN = theDataTable.Rows[0]["clrISN"].ToString ();
				this.tbDiDong.Text = theDataTable.Rows[0]["patMobile"].ToString ();
				this.tbPhauThuat.Text = theDataTable.Rows[0]["clrSurgery"].ToString ();
				this.tbBSu.Text = theDataTable.Rows[0]["clrSickHistory"].ToString ();
				if ((theDataTable.Rows[0]["clrSurgery"].ToString () != "NULL") && ((theDataTable.Rows[0]["clrSurgery"].ToString () != string.Empty) && (theDataTable.Rows[0]["clrSurgery"].ToString () != "")))
				{
					goto L_0830;
				}
				
			L_0822:
				
				{
				}
				this.checkBox1.Checked = false;
				goto L_0863;
				
			L_0830:
				
				{
				}
				this.checkBox1.Checked = true;
				this.dtpNgayHen.Text = theDataTable.Rows[0]["clrAppointmentDate"].ToString ();
				
			L_0863:
				
				{
				}
				this.tbDienBien.Text = theDataTable.Rows[0]["clrSickChange"].ToString ();
				theStringArray5 = new string[5];
				theStringArray5[0] = "SELECT * FROM vw_ClinicalSicks WHERE clrExaminationTimes=";
				theStringArray5[1] = this.cbETimes.Text;
				theStringArray5[2] = " AND patISN=";
				theStringArray5[3] = this.patISN;
				theStringArray5[4] = theString;
				theSqlDataAdapter2 = new SqlDataAdapter (string.Concat (theStringArray5), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i5 = theSqlDataAdapter2.Fill (theDataSet2, "vw_ClinicalSicks");
				theSqlDataAdapter2.Dispose ();
				if (theDataSet2 == null)
				{
					goto L_0D29;
				}
				
			L_08F7:
				
				{
				}
				this.listView1.Items.Clear ();
				i2 = 0;
				goto L_0A18;
				
			L_090F:
				
				{
				}
				theListViewItem = new ListViewItem (theDataSet2.Tables["vw_ClinicalSicks"].Rows[i2]["sckName"].ToString ());
				theString2 = theDataSet2.Tables["vw_ClinicalSicks"].Rows[i2]["sckSickLevel"].ToString ();
				if (theString2 != "0")
				{
					goto L_098A;
				}
				theListViewItem.ForeColor = Color.Red;
				
			L_098A:
				
				{
				}
				if (theString2 != "1")
				{
					goto L_09A4;
				}
				theListViewItem.ForeColor = Color.Blue;
				
			L_09A4:
				
				{
				}
				if (theString2 != "2")
				{
					goto L_09BE;
				}
				theListViewItem.ForeColor = Color.Purple;
				
			L_09BE:
				
				{
				}
				if (theString2 != "3")
				{
					goto L_09D8;
				}
				theListViewItem.ForeColor = Color.Green;
				
			L_09D8:
				
				{
				}
				if (theString2 != "4")
				{
					goto L_09F2;
				}
				theListViewItem.ForeColor = Color.Gray;
				
			L_09F2:
				
				{
				}
				theListViewItemArray = new ListViewItem[1];
				theListViewItemArray[0] = theListViewItem;
				this.listView1.Items.AddRange (theListViewItemArray);
				i2++;
				
			L_0A18:
				
				{
				}
				if (i2 < theDataSet2.Tables["vw_ClinicalSicks"].Rows.Count)
				{
					goto L_090F;
				}
				theStringArray6 = new string[5];
				theStringArray6[0] = "SELECT * FROM vw_PathologicalClinical WHERE clrExaminationTimes=";
				theStringArray6[1] = this.cbETimes.Text;
				theStringArray6[2] = " AND patISN = ";
				theStringArray6[3] = this.patISN;
				theStringArray6[4] = theString;
				theSqlDataAdapter3 = new SqlDataAdapter (string.Concat (theStringArray6), theSqlConnection);
				theDataSet3 = new DataSet ();
				int i6 = theSqlDataAdapter3.Fill (theDataSet3, "vw_PathologicalClinical");
				theSqlDataAdapter3.Dispose ();
				if ((theDataSet3 != null) && (theDataSet3.Tables["vw_PathologicalClinical"].Rows[0]["plsPathologicalSigns"].ToString () != ""))
				{
					goto L_0AE7;
				}
				
			L_0AD9:
				
				{
				}
				this.linkLabel1.Enabled = false;
				goto L_0B5E;
				
			L_0AE7:
				
				{
				}
				this.lbCD.Items.Clear ();
				i3 = 0;
				goto L_0B3F;
				
			L_0AFC:
				
				{
				}
				int i7 = this.lbCD.Items.Add (theDataSet3.Tables["vw_PathologicalClinical"].Rows[i3]["plsPathologicalSigns"].ToString ());
				i3++;
				
			L_0B3F:
				
				{
				}
				if (i3 < theDataSet3.Tables["vw_PathologicalClinical"].Rows.Count)
				{
					goto L_0AFC;
				}
				
			L_0B5E:
				
				{
				}
				this.btTaiKham.Enabled = true;
				this.tbCDNgoaiDS.Text = theDataSet3.Tables["vw_PathologicalClinical"].Rows[0]["polPathologicalSignsOutList"].ToString ();
				this.dtpNgayHen.CustomFormat = "dd/MM/yyyy";
				this.insertXetNghiem = false;
				this.linkXetNghiem.Enabled = true;
				this.NgayKham = this.dtpNgayKham.Text.ToString ();
				if (this.KTKhoiBenh ())
				{
					goto L_0BFB;
				}
				this.chkHetBenh.Checked = true;
				this.btCapNhat.Enabled = false;
				goto L_0C13;
				
			L_0BFB:
				
				{
				}
				this.chkHetBenh.Checked = false;
				this.btCapNhat.Enabled = true;
				
			L_0C13:
				
				{
				}
				theSqlDataAdapter4 = new SqlDataAdapter (string.Concat ("SELECT nlpISN FROM vw_AnalyzeResult WHERE clrISN=", this.clrNoiSoiISN), this.connStr);
				theDataSet4 = new DataSet ();
				int i8 = theSqlDataAdapter4.Fill (theDataSet4, "vw_AnalyzeResult");
				theSqlDataAdapter4.Dispose ();
				if ((theDataSet4 != null) && ((theDataSet4.Tables.Count != 0) && (theDataSet4.Tables["vw_AnalyzeResult"].Rows.Count != 0)))
				{
					goto L_0C8E;
				}
				
			L_0C7C:
				
				{
				}
				this.linkXetNghiem.LinkColor = Color.Blue;
				goto L_0C9E;
				
			L_0C8E:
				
				{
				}
				this.linkXetNghiem.LinkColor = Color.DarkGoldenrod;
				
			L_0C9E:
				
				{
				}
				theSqlDataAdapter5 = new SqlDataAdapter (string.Concat ("SELECT * FROM vw_ScanResult_InnerScan WHERE clrISN=", this.clrNoiSoiISN), this.connStr);
				theDataSet5 = new DataSet ();
				int i9 = theSqlDataAdapter5.Fill (theDataSet5, "vw_ScanResult_InnerScan");
				theSqlDataAdapter5.Dispose ();
				if (theDataSet5 == null)
				{
					goto L_0D07;
				}
				if (theDataSet5.Tables.Count == 0)
				{
					goto L_0D07;
				}
				if (theDataSet5.Tables["vw_ScanResult_InnerScan"].Rows.Count != 0)
				{
					goto L_0D19;
				}
				
			L_0D07:
				
				{
				}
				this.linkNoiSoi.LinkColor = Color.Blue;
				goto L_0D29;
				
			L_0D19:
				
				{
				}
				this.linkNoiSoi.LinkColor = Color.DarkGoldenrod;
				
			L_0D29:
				return;
			}
			
			private void checkBox1_CheckedChanged (object sender, EventArgs e)
			
			{
				
			L_0017:
				
				{
				}
				
			L_0016:
				
				{
				}
				this.panel1.Enabled = (this.checkBox1.Checked ? true : false);
				return;
			}
			
			private bool checkData ()
			
			{
				int i;
				int i2;
				bool theBoolean;
				i = 0;
				goto L_0066;
				
			L_0004:
				
				{
				}
				i2 = 0;
				goto L_004F;
				
			L_0008:
				
				{
				}
				if (this.lbCD.Items[i2].ToString () != "")
				{
					goto L_004B;
				}
				this.lbCD.Items.Remove (this.lbCD.Items[i2]);
				
			L_004B:
				
				{
				}
				i2++;
				
			L_004F:
				
				{
				}
				if (i2 < this.lbCD.Items.Count)
				{
					goto L_0008;
				}
				i++;
				
			L_0066:
				
				{
				}
				if (i < this.lbCD.Items.Count)
				{
					goto L_0004;
				}
				if (this.tbFullName.Text != "")
				{
					goto L_00AA;
				}
				DialogResult theDialogResult = MessageBox.Show ("Vui l?ng nh?p t?n b?nh nh?n!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				theBoolean = false;
				goto L_0169;
				
			L_00AA:
				
				{
				}
				if (this.tbTuoi.Text == "")
				{
					goto L_00F2;
				}
				if (int.Parse (this.tbTuoi.Text.ToString ()) < 0)
				{
					goto L_00F2;
				}
				if (int.Parse (this.tbTuoi.Text.ToString ()) <= 120)
				{
					goto L_0109;
				}
				
			L_00F2:
				
				{
				}
				DialogResult theDialogResult2 = MessageBox.Show ("Vui l?ng nh?p ng?y th?ng n?m sinh h?p l?!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				theBoolean = false;
				goto L_0169;
				
			L_0109:
				
				{
				}
				if (this.tbAddress.Text != "")
				{
					goto L_0137;
				}
				DialogResult theDialogResult3 = MessageBox.Show ("Vui l?ng nh?p ??a ch?!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				theBoolean = false;
				goto L_0169;
				
			L_0137:
				
				{
				}
				if (this.cbBacSi.Text != "")
				{
					goto L_0165;
				}
				DialogResult theDialogResult4 = MessageBox.Show ("Vui l?ng ch?n b?c s? kh?m!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				theBoolean = false;
				goto L_0169;
				
			L_0165:
				
				{
				}
				theBoolean = true;
				goto L_0169;
				
			L_0169:
				
				{
				}
				return theBoolean;
			}
			
			private void chkHetBenh_Click (object sender, EventArgs e)
			
			{
				if (! this.chkHetBenh.Checked)
				{
					goto L_003C;
				}
				if (MessageBox.Show ("B?nh nh?n n?y ?? kh?i b?nh?", "T?nh Tr?ng B?nh", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
				{
					goto L_0030;
				}
				this.chkHetBenh.Checked = true;
				goto L_003C;
				
			L_0030:
				
				{
				}
				this.chkHetBenh.Checked = false;
				
			L_003C:
				return;
			}
			
			private void clearText ()
			
			{
				this.listView1.Items.Clear ();
				this.lbCD.Items.Clear ();
				this.tbMach.Text = "";
				this.tbNhietDo.Text = "";
				this.tbHuyetAp.Text = "";
				this.tbCanNang.Text = "";
				this.tbFullName.Text = "";
				this.tbTuoi.Text = "";
				this.tbAddress.Text = "";
				this.tbPhone.Text = "";
				this.tbJob.Text = "";
				this.tbMach.Text = "";
				this.tbNhietDo.Text = "";
				this.tbHuyetAp.Text = "";
				this.tbCanNang.Text = "";
				this.tbBenhSu.Text = "";
				this.tbBenhNgoaiDS.Text = "";
				this.dtpNgayKham.Text = "";
				this.tbThuThuat.Text = "";
				this.tbPhauThuat.Text = "";
				this.tbLoiKhuyen.Text = "";
				this.tbDienBien.Text = "";
				return;
			}
			
			protected override void Dispose (bool disposing)
			
			{
				if (! disposing)
				{
					goto L_0016;
				}
				if (this.components == null)
				{
					goto L_0016;
				}
				this.components.Dispose ();
				
			L_0016:
				
				{
				}
				base.Dispose (disposing);
				return;
			}
			
			private void dtpBirthDay_Leave (object sender, EventArgs e)
			
			{
				int i;
				DateTime theDateTime;
				DateTime theDateTime2;
				this.dtpBirthDay.CustomFormat = "MM/dd/yyyy";
				this.tbTuoi.Text = (i = (Convert.ToInt32 ((theDateTime2 = DateTime.Now).Year) - Convert.ToInt32 ((theDateTime = DateTime.Parse (this.dtpBirthDay.Text)).Year))).ToString ();
				this.dtpBirthDay.CustomFormat = "dd/MM/yyyy";
				return;
			}
			
			private void frmHoSoBenhAn_Load (object sender, EventArgs e)
			
			{
				DateTime theDateTime;
				SqlConnection theSqlConnection;
				ArrayList theArrayList;
				ArrayList theArrayList2;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				int i;
				int i2;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				DataTable theDataTable2;
				int i3;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				DataTable theDataTable3;
				SqlDataAdapter theSqlDataAdapter4;
				DataSet theDataSet4;
				SqlDataAdapter theSqlDataAdapter5;
				DataSet theDataSet5;
				SqlDataAdapter theSqlDataAdapter6;
				DataSet theDataSet6;
				DataTable theDataTable4;
				int i4;
				string[] theStringArray;
				string[] theStringArray2;
				this.day = Convert.ToString ((theDateTime = DateTime.Now).Day);
				this.month = Convert.ToString (theDateTime.Month);
				this.year = Convert.ToString (theDateTime.Year);
				theSqlConnection = new SqlConnection (this.connStr);
				theArrayList = new ArrayList ();
				theArrayList2 = new ArrayList ();
				theSqlDataAdapter = new SqlDataAdapter ("select distinct(sktisn), sktname from vw_SickTree_Sicks order by sktname ", theSqlConnection);
				theDataSet = new DataSet ();
				int i5 = theSqlDataAdapter.Fill (theDataSet, "vw_SickTree_Sicks");
				if (theDataSet == null)
				{
					goto L_09F2;
				}
				
			L_0080:
				
				{
				}
				theDataTable = theDataSet.Tables["vw_SickTree_Sicks"];
				i = 0;
				goto L_00DE;
				
			L_0098:
				
				{
				}
				int i6 = theArrayList.Add (theDataTable.Rows[i][0].ToString ());
				int i7 = theArrayList2.Add (theDataTable.Rows[i][1].ToString ());
				i++;
				
			L_00DE:
				
				{
				}
				if (i < theDataTable.Rows.Count)
				{
					goto L_0098;
				}
				i2 = 0;
				goto L_01AD;
				
			L_00F6:
				
				{
				}
				this.insertParentNode (theArrayList2[i2].ToString ());
				theSqlDataAdapter2 = new SqlDataAdapter (string.Concat ("SELECT * FROM Sicks WHERE sktISN=", theArrayList[i2].ToString (), " order by sckName"), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i8 = theSqlDataAdapter2.Fill (theDataSet2, "Sicks");
				theDataTable2 = theDataSet2.Tables["Sicks"];
				i3 = 0;
				goto L_0180;
				
			L_015B:
				
				{
				}
				this.insertChildNode (theDataTable2.Rows[i3][2].ToString ());
				i3++;
				
			L_0180:
				
				{
				}
				if (i3 < theDataTable2.Rows.Count)
				{
					goto L_015B;
				}
				int i9 = this.treeView1.Nodes.Add (this.node);
				i2++;
				
			L_01AD:
				
				{
				}
				if (i2 < theArrayList.Count)
				{
					goto L_00F6;
				}
				theSqlDataAdapter.Dispose ();
				this.LoadChanDoan ();
				if (this.NhanBiet != "0")
				{
					goto L_072D;
				}
				theSqlDataAdapter3 = new SqlDataAdapter (string.Concat ("SELECT patID, patName, DAY(patBirthDate) AS NgaySinh, MONTH(patBirthDate) As Tha"
				+ "ngSinh, YEAR(patBirthDate) As NamSinh, clrPulse, clrTemperature, clrBloodPressur"
				+ "e, clrWeigh, patSex, patAddress, patAge, patTel, patOccupation, clrExaminationTi"
				+ "mes, patMobile, clrSurgery FROM vw_SearchClinicalRecord WHERE patISN=", this.patISN), theSqlConnection);
				theDataSet3 = new DataSet ();
				int i10 = theSqlDataAdapter3.Fill (theDataSet3, "Patients");
				theDataTable3 = theDataSet3.Tables["Patients"];
				this.tbID.Text = theDataTable3.Rows[0]["patID"].ToString ();
				this.tbFullName.Text = theDataTable3.Rows[0]["patName"].ToString ();
				theStringArray = new string[5];
				theStringArray[0] = theDataTable3.Rows[0]["ThangSinh"].ToString ();
				theStringArray[1] = "/";
				theStringArray[2] = theDataTable3.Rows[0]["NgaySinh"].ToString ();
				theStringArray[3] = "/";
				theStringArray[4] = theDataTable3.Rows[0]["NamSinh"].ToString ();
				this.dtpBirthDay.Text = string.Concat (theStringArray);
				if (theDataTable3.Rows[0]["clrPulse"].ToString () != "0")
				{
					goto L_0331;
				}
				this.tbMach.Text = "";
				goto L_0358;
				
			L_0331:
				
				{
				}
				this.tbMach.Text = theDataTable3.Rows[0]["clrPulse"].ToString ();
				
			L_0358:
				
				{
				}
				if (theDataTable3.Rows[0]["clrTemperature"].ToString () != "0")
				{
					goto L_0392;
				}
				this.tbNhietDo.Text = "";
				goto L_03B9;
				
			L_0392:
				
				{
				}
				this.tbNhietDo.Text = theDataTable3.Rows[0]["clrTemperature"].ToString ();
				
			L_03B9:
				
				{
				}
				if (theDataTable3.Rows[0]["clrBloodPressure"].ToString () != "0")
				{
					goto L_03F3;
				}
				this.tbHuyetAp.Text = "";
				goto L_041A;
				
			L_03F3:
				
				{
				}
				this.tbHuyetAp.Text = theDataTable3.Rows[0]["clrBloodPressure"].ToString ();
				
			L_041A:
				
				{
				}
				if (theDataTable3.Rows[0]["clrWeigh"].ToString () != "0")
				{
					goto L_0454;
				}
				this.tbCanNang.Text = "";
				goto L_047B;
				
			L_0454:
				
				{
				}
				this.tbCanNang.Text = theDataTable3.Rows[0]["clrWeigh"].ToString ();
				
			L_047B:
				
				{
				}
				if (theDataTable3.Rows[0]["patSex"].ToString () != "Nam")
				{
					goto L_04B1;
				}
				this.rbMale.Checked = true;
				goto L_04BD;
				
			L_04B1:
				
				{
				}
				this.rbFemale.Checked = true;
				
			L_04BD:
				
				{
				}
				this.tbAddress.Text = theDataTable3.Rows[0]["patAddress"].ToString ();
				this.tbTuoi.Text = theDataTable3.Rows[0]["patAge"].ToString ();
				this.tbPhone.Text = theDataTable3.Rows[0]["patTel"].ToString ();
				this.tbJob.Text = theDataTable3.Rows[0]["patOccupation"].ToString ();
				this.tbDiDong.Text = theDataTable3.Rows[0]["patMobile"].ToString ();
				this.tbPhauThuat.Text = theDataTable3.Rows[0]["clrSurgery"].ToString ();
				theStringArray2 = new string[5];
				theStringArray2[0] = this.day;
				theStringArray2[1] = "/";
				theStringArray2[2] = this.month;
				theStringArray2[3] = "/";
				theStringArray2[4] = this.year;
				this.tbNgayKham.Text = string.Concat (theStringArray2);
				this.dtpNgayKham.Visible = false;
				this.tbNgayKham.Visible = true;
				this.cbBacSi.Visible = true;
				this.tbLanKham.Text = "1";
				this.tbLanKham.Visible = true;
				this.cbETimes.Visible = false;
				this.btLapBenhAnMoi.Visible = false;
				this.btCapNhat.Enabled = false;
				this.btLuuBenhAn.Enabled = true;
				this.btLuuBenhAn.Visible = true;
				this.btCapNhat.Visible = false;
				this.linkNoiSoi.Enabled = false;
				this.linkLabel1.Enabled = false;
				this.linkXetNghiem.Enabled = false;
				theSqlDataAdapter4 = new SqlDataAdapter ("SELECT empName,empISN FROM Employees", theSqlConnection);
				theDataSet4 = new DataSet ();
				int i11 = theSqlDataAdapter4.Fill (theDataSet4, "Employees");
				if ((theDataSet4 != null) && ((theDataSet4.Tables.Count != 0) && (theDataSet4.Tables[0].Rows.Count != 0)))
				{
					goto L_06F0;
				}
				
			L_06EB:
				
				{
				}
				goto L_09F2;
				
			L_06F0:
				
				{
				}
				this.cbBacSi.DisplayMember = "Employees.empName";
				this.cbBacSi.ValueMember = "Employees.empISN";
				this.cbBacSi.DataSource = theDataSet4;
				this.ThanhTien = "0";
				goto L_09EC;
				
			L_072D:
				
				{
				}
				this.ThanhTien = "1";
				this.dtpNgayKham.Visible = true;
				this.tbNgayKham.Visible = false;
				this.cbBacSi.Visible = true;
				this.tbLanKham.Text = "1";
				this.tbLanKham.Visible = false;
				this.cbETimes.Visible = true;
				this.btLapBenhAnMoi.Visible = true;
				this.btCapNhat.Enabled = true;
				this.linkNoiSoi.Enabled = true;
				this.linkLabel1.Enabled = true;
				this.linkXetNghiem.Enabled = true;
				this.btLuuBenhAn.Visible = false;
				theSqlDataAdapter5 = new SqlDataAdapter ("SELECT empName,empISN FROM Employees", theSqlConnection);
				theDataSet5 = new DataSet ();
				int i12 = theSqlDataAdapter5.Fill (theDataSet5, "Employees");
				if ((theDataSet5 != null) && ((theDataSet5.Tables.Count != 0) && (theDataSet5.Tables["Employees"].Rows.Count != 0)))
				{
					goto L_0823;
				}
				
			L_081E:
				
				{
				}
				goto L_09F2;
				
			L_0823:
				
				{
				}
				this.cbBacSi.DisplayMember = "Employees.empName";
				this.cbBacSi.ValueMember = "Employees.empISN";
				this.cbBacSi.DataSource = theDataSet5;
				theSqlDataAdapter6 = new SqlDataAdapter (string.Concat ("select distinct clrExaminationTimes FROM ClinicalRecord WHERE patISN=", this.patISN), theSqlConnection);
				theDataSet6 = new DataSet ();
				int i13 = theSqlDataAdapter6.Fill (theDataSet6, "ClinicalRecord");
				theSqlDataAdapter6.Dispose ();
				theDataTable4 = theDataSet6.Tables["ClinicalRecord"];
				if ((theDataTable4.Rows[0]["clrExaminationTimes"].ToString () != string.Empty) && (theDataTable4.Rows[0]["clrExaminationTimes"].ToString () != ""))
				{
					goto L_093D;
				}
				
			L_08E8:
				
				{
				}
				this.tbLanKham.Text = "1";
				this.tbLanKham.Visible = true;
				this.cbETimes.Visible = false;
				this.txtTaiKham.Text = "0";
				this.txtTaiKham.Visible = true;
				this.cboTaiKham.Visible = false;
				goto L_09D7;
				
			L_093D:
				
				{
				}
				this.cbETimes.Items.Clear ();
				i4 = 0;
				goto L_099B;
				
			L_0952:
				
				{
				}
				int i14 = this.cbETimes.Items.Add (new ImageComboItem (theDataSet6.Tables["ClinicalRecord"].Rows[i4]["clrExaminationTimes"].ToString (), -1));
				i4++;
				
			L_099B:
				
				{
				}
				if (i4 < theDataSet6.Tables["ClinicalRecord"].Rows.Count)
				{
					goto L_0952;
				}
				this.cbETimes.SelectedIndex = (this.cbETimes.Items.Count - 1);
				
			L_09D7:
				
				{
				}
				this.cbETimes_SelectedIndexChanged (null, ((EventArgs) null));
				theSqlDataAdapter5.Dispose ();
				theSqlConnection.Close ();
				
			L_09EC:
				
				{
				}
				this.loadTienIch ();
				
			L_09F2:
				return;
			}
			
			private void InitializeComponent ()
			
			{
				ResourceManager theResourceManager;
				Control[] theControlArray;
				Control[] theControlArray2;
				Control[] theControlArray3;
				Control[] theControlArray4;
				Control[] theControlArray5;
				Control[] theControlArray6;
				Control[] theControlArray7;
				Control[] theControlArray8;
				Control[] theControlArray9;
				Control[] theControlArray10;
				Control[] theControlArray11;
				this.components = ((IContainer) new System.ComponentModel.Container ());
				theResourceManager = new ResourceManager (typeof (frmHoSoBenhAn));
				this.btLapBenhAnMoi = new Button ();
				this.groupBox5 = new GroupBox ();
				this.checkBox1 = new CheckBox ();
				this.panel1 = new Panel ();
				this.tbPhauThuat = new TextBox ();
				this.ctmPhauThuat = new System.Windows.Forms.ContextMenu ();
				this.dtpNgayHen = new DateTimePicker ();
				this.dtpNgayKham = new DateTimePicker ();
				this.tbNgayKham = new TextBox ();
				this.label16 = new Label ();
				this.label17 = new Label ();
				this.cbETimes = new ImageCombo ();
				this.tbLanKham = new TextBox ();
				this.groupBox6 = new GroupBox ();
				this.tbThuThuat = new TextBox ();
				this.ctmThuThuat = new System.Windows.Forms.ContextMenu ();
				this.label18 = new Label ();
				this.dtpNgayTaiKham = new DateTimePicker ();
				this.groupBox2 = new GroupBox ();
				this.btRemove = new Button ();
				this.btAdd = new Button ();
				this.treeView1 = new TreeView ();
				this.cbBacSi = new ComboBox ();
				this.lbBacSi = new Label ();
				this.tbCanNang = new TextBox ();
				this.tbHuyetAp = new TextBox ();
				this.label12 = new Label ();
				this.label11 = new Label ();
				this.tbNhietDo = new TextBox ();
				this.tbMach = new TextBox ();
				this.label10 = new Label ();
				this.label9 = new Label ();
				this.tbBenhNgoaiDS = new TextBox ();
				this.label15 = new Label ();
				this.listView1 = new ListView ();
				this.tbDienBien = new TextBox ();
				this.label23 = new Label ();
				this.label19 = new Label ();
				this.btThoat = new Button ();
				this.groupBox3 = new GroupBox ();
				this.tbBSu = new TextBox ();
				this.label14 = new Label ();
				this.tbBenhSu = new TextBox ();
				this.ctmTienCan = new System.Windows.Forms.ContextMenu ();
				this.label13 = new Label ();
				this.chkHetBenh = new CheckBox ();
				this.btLuuBenhAn = new Button ();
				this.groupBox1 = new GroupBox ();
				this.dtpBirthDay = new DateTimePicker ();
				this.rbMale = new RadioButton ();
				this.tbJob = new TextBox ();
				this.tbPhone = new TextBox ();
				this.tbAddress = new TextBox ();
				this.tbTuoi = new TextBox ();
				this.tbID = new TextBox ();
				this.tbFullName = new TextBox ();
				this.label7 = new Label ();
				this.label6 = new Label ();
				this.label5 = new Label ();
				this.label4 = new Label ();
				this.label3 = new Label ();
				this.label2 = new Label ();
				this.label1 = new Label ();
				this.label8 = new Label ();
				this.rbFemale = new RadioButton ();
				this.tbDiDong = new TextBox ();
				this.label21 = new Label ();
				this.btCapNhat = new Button ();
				this.groupBox4 = new GroupBox ();
				this.tbCDNgoaiDS = new TextBox ();
				this.label20 = new Label ();
				this.treeView2 = new TreeView ();
				this.btRemoveChanDoan = new Button ();
				this.btAddChanDoan = new Button ();
				this.lbCD = new ListBox ();
				this.toolTip1 = new ToolTip (this.components);
				this.linkLabel1 = new LinkLabel ();
				this.groupBox7 = new GroupBox ();
				this.chbBAGoc = new CheckBox ();
				this.linkBAGoc = new LinkLabel ();
				this.label22 = new Label ();
				this.cboTaiKham = new ImageCombo ();
				this.txtTaiKham = new TextBox ();
				this.groupBox8 = new GroupBox ();
				this.tbLoiKhuyen = new TextBox ();
				this.ctmLoiKhuyen = new System.Windows.Forms.ContextMenu ();
				this.groupBox9 = new GroupBox ();
				this.linkNoiSoi = new LinkLabel ();
				this.linkXetNghiem = new LinkLabel ();
				this.btTaiKham = new Button ();
				this.imageList1 = new ImageList (this.components);
				this.groupBox5.SuspendLayout ();
				this.panel1.SuspendLayout ();
				this.groupBox6.SuspendLayout ();
				this.groupBox2.SuspendLayout ();
				this.groupBox3.SuspendLayout ();
				this.groupBox1.SuspendLayout ();
				this.groupBox4.SuspendLayout ();
				this.groupBox7.SuspendLayout ();
				this.groupBox8.SuspendLayout ();
				this.groupBox9.SuspendLayout ();
				base.SuspendLayout ();
				this.btLapBenhAnMoi.FlatStyle = FlatStyle.Popup;
				this.btLapBenhAnMoi.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btLapBenhAnMoi.Location = new Point (420, 568);
				this.btLapBenhAnMoi.Name = "btLapBenhAnMoi";
				this.btLapBenhAnMoi.Size = new System.Drawing.Size (128, 23);
				this.btLapBenhAnMoi.TabIndex = 28;
				this.btLapBenhAnMoi.Text = "L?p B?nh ?n M?i";
				this.btLapBenhAnMoi.Click += new EventHandler (this.btLapBenhAnMoi_Click);
				theControlArray = new Control[2];
				theControlArray[0] = ((Control) this.checkBox1);
				theControlArray[1] = ((Control) this.panel1);
				this.groupBox5.Controls.AddRange (theControlArray);
				this.groupBox5.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox5.ForeColor = Color.Coral;
				this.groupBox5.Location = new Point (680, 41);
				this.groupBox5.Name = "groupBox5";
				this.groupBox5.Size = new System.Drawing.Size (232, 134);
				this.groupBox5.TabIndex = 19;
				this.groupBox5.TabStop = false;
				this.groupBox5.Text = "Ph?u Thu?t";
				this.checkBox1.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.checkBox1.ForeColor = SystemColors.ControlText;
				this.checkBox1.Location = new Point (16, 104);
				this.checkBox1.Name = "checkBox1";
				this.checkBox1.Size = new System.Drawing.Size (88, 24);
				this.checkBox1.TabIndex = 28;
				this.checkBox1.Text = "Ng?y h?n";
				this.checkBox1.CheckedChanged += new EventHandler (this.checkBox1_CheckedChanged);
				theControlArray2 = new Control[2];
				theControlArray2[0] = ((Control) this.tbPhauThuat);
				theControlArray2[1] = ((Control) this.dtpNgayHen);
				this.panel1.Controls.AddRange (theControlArray2);
				this.panel1.Enabled = false;
				this.panel1.Location = new Point (16, 24);
				this.panel1.Name = "panel1";
				this.panel1.Size = new System.Drawing.Size (200, 104);
				this.panel1.TabIndex = 1359;
				this.tbPhauThuat.BorderStyle = BorderStyle.FixedSingle;
				this.tbPhauThuat.ContextMenu = this.ctmPhauThuat;
				this.tbPhauThuat.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbPhauThuat.Multiline = true;
				this.tbPhauThuat.Name = "tbPhauThuat";
				this.tbPhauThuat.ScrollBars = ScrollBars.Both;
				this.tbPhauThuat.Size = new System.Drawing.Size (200, 72);
				this.tbPhauThuat.TabIndex = 25;
				this.tbPhauThuat.Text = "";
				this.dtpNgayHen.CustomFormat = "dd/MM/yyyy";
				this.dtpNgayHen.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.dtpNgayHen.Format = DateTimePickerFormat.Custom;
				this.dtpNgayHen.Location = new Point (88, 79);
				this.dtpNgayHen.Name = "dtpNgayHen";
				this.dtpNgayHen.Size = new System.Drawing.Size (112, 22);
				this.dtpNgayHen.TabIndex = 27;
				this.dtpNgayKham.CustomFormat = "dd/MM/yyyy";
				this.dtpNgayKham.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.dtpNgayKham.Format = DateTimePickerFormat.Custom;
				this.dtpNgayKham.Location = new Point (112, 70);
				this.dtpNgayKham.Name = "dtpNgayKham";
				this.dtpNgayKham.Size = new System.Drawing.Size (104, 23);
				this.dtpNgayKham.TabIndex = 33;
				this.tbNgayKham.BorderStyle = BorderStyle.FixedSingle;
				this.tbNgayKham.Enabled = false;
				this.tbNgayKham.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbNgayKham.Location = new Point (112, 70);
				this.tbNgayKham.Name = "tbNgayKham";
				this.tbNgayKham.Size = new System.Drawing.Size (104, 23);
				this.tbNgayKham.TabIndex = 1355;
				this.tbNgayKham.Text = "";
				this.label16.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label16.Location = new Point (7, 18);
				this.label16.Name = "label16";
				this.label16.Size = new System.Drawing.Size (81, 16);
				this.label16.TabIndex = 0;
				this.label16.Text = "L?n kh?m:";
				this.label17.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label17.Location = new Point (7, 72);
				this.label17.Name = "label17";
				this.label17.Size = new System.Drawing.Size (88, 16);
				this.label17.TabIndex = 2;
				this.label17.Text = "Ng?y kh?m:";
				this.cbETimes.DrawMode = DrawMode.OwnerDrawFixed;
				this.cbETimes.DropDownStyle = ComboBoxStyle.DropDownList;
				this.cbETimes.Font = new System.Drawing.Font ("Verdana Ref", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.cbETimes.Location = new Point (112, 14);
				this.cbETimes.Name = "cbETimes";
				this.cbETimes.RightToLeft = System.Windows.Forms.RightToLeft.No;
				this.cbETimes.Size = new System.Drawing.Size (56, 24);
				this.cbETimes.TabIndex = 32;
				this.cbETimes.SelectedIndexChanged += new EventHandler (this.cbETimes_SelectedIndexChanged);
				this.tbLanKham.BorderStyle = BorderStyle.FixedSingle;
				this.tbLanKham.Enabled = false;
				this.tbLanKham.Font = new System.Drawing.Font ("Verdana Ref", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbLanKham.Location = new Point (112, 15);
				this.tbLanKham.Name = "tbLanKham";
				this.tbLanKham.Size = new System.Drawing.Size (48, 23);
				this.tbLanKham.TabIndex = 166;
				this.tbLanKham.Text = "";
				theControlArray3 = new Control[1];
				theControlArray3[0] = ((Control) this.tbThuThuat);
				this.groupBox6.Controls.AddRange (theControlArray3);
				this.groupBox6.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox6.ForeColor = Color.Coral;
				this.groupBox6.Location = new Point (680, 180);
				this.groupBox6.Name = "groupBox6";
				this.groupBox6.Size = new System.Drawing.Size (232, 82);
				this.groupBox6.TabIndex = 20;
				this.groupBox6.TabStop = false;
				this.groupBox6.Text = "Th? Thu?t";
				this.tbThuThuat.AutoSize = false;
				this.tbThuThuat.BorderStyle = BorderStyle.FixedSingle;
				this.tbThuThuat.ContextMenu = this.ctmThuThuat;
				this.tbThuThuat.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbThuThuat.Location = new Point (16, 24);
				this.tbThuThuat.Multiline = true;
				this.tbThuThuat.Name = "tbThuThuat";
				this.tbThuThuat.ScrollBars = ScrollBars.Both;
				this.tbThuThuat.Size = new System.Drawing.Size (200, 48);
				this.tbThuThuat.TabIndex = 26;
				this.tbThuThuat.Text = "";
				this.label18.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label18.ForeColor = SystemColors.ControlText;
				this.label18.Location = new Point (7, 99);
				this.label18.Name = "label18";
				this.label18.Size = new System.Drawing.Size (113, 16);
				this.label18.TabIndex = 1;
				this.label18.Text = "Ng?y t?i kh?m:";
				this.dtpNgayTaiKham.CustomFormat = "dd/MM/yyyy";
				this.dtpNgayTaiKham.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.dtpNgayTaiKham.Format = DateTimePickerFormat.Custom;
				this.dtpNgayTaiKham.Location = new Point (112, 96);
				this.dtpNgayTaiKham.Name = "dtpNgayTaiKham";
				this.dtpNgayTaiKham.Size = new System.Drawing.Size (104, 22);
				this.dtpNgayTaiKham.TabIndex = 27;
				theControlArray4 = new Control[16];
				theControlArray4[0] = ((Control) this.btRemove);
				theControlArray4[1] = ((Control) this.btAdd);
				theControlArray4[2] = ((Control) this.treeView1);
				theControlArray4[3] = ((Control) this.cbBacSi);
				theControlArray4[4] = ((Control) this.lbBacSi);
				theControlArray4[5] = ((Control) this.tbCanNang);
				theControlArray4[6] = ((Control) this.tbHuyetAp);
				theControlArray4[7] = ((Control) this.label12);
				theControlArray4[8] = ((Control) this.label11);
				theControlArray4[9] = ((Control) this.tbNhietDo);
				theControlArray4[10] = ((Control) this.tbMach);
				theControlArray4[11] = ((Control) this.label10);
				theControlArray4[12] = ((Control) this.label9);
				theControlArray4[13] = ((Control) this.tbBenhNgoaiDS);
				theControlArray4[14] = ((Control) this.label15);
				theControlArray4[15] = ((Control) this.listView1);
				this.groupBox2.Controls.AddRange (theControlArray4);
				this.groupBox2.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox2.ForeColor = Color.Coral;
				this.groupBox2.Location = new Point (8, 258);
				this.groupBox2.Name = "groupBox2";
				this.groupBox2.Size = new System.Drawing.Size (344, 334);
				this.groupBox2.TabIndex = 16;
				this.groupBox2.TabStop = false;
				this.groupBox2.Text = "B?nh ?n";
				this.btRemove.FlatStyle = FlatStyle.Popup;
				this.btRemove.ForeColor = SystemColors.ControlText;
				this.btRemove.Image = ((Image) ((Bitmap) theResourceManager.GetObject ("btRemove.Image")));
				this.btRemove.Location = new Point (160, 180);
				this.btRemove.Name = "btRemove";
				this.btRemove.Size = new System.Drawing.Size (32, 23);
				this.btRemove.TabIndex = 15;
				this.btRemove.Click += new EventHandler (this.btRemove_Click);
				this.btAdd.FlatStyle = FlatStyle.Popup;
				this.btAdd.ForeColor = SystemColors.ControlText;
				this.btAdd.Image = ((Image) ((Bitmap) theResourceManager.GetObject ("btAdd.Image")));
				this.btAdd.Location = new Point (160, 153);
				this.btAdd.Name = "btAdd";
				this.btAdd.Size = new System.Drawing.Size (32, 23);
				this.btAdd.TabIndex = 14;
				this.btAdd.Click += new EventHandler (this.btAdd_Click);
				this.treeView1.BorderStyle = BorderStyle.FixedSingle;
				this.treeView1.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.treeView1.ImageIndex = -1;
				this.treeView1.Location = new Point (16, 112);
				this.treeView1.Name = "treeView1";
				this.treeView1.SelectedImageIndex = -1;
				this.treeView1.Size = new System.Drawing.Size (136, 168);
				this.treeView1.TabIndex = 13;
				this.treeView1.DoubleClick += new EventHandler (this.treeView1_DoubleClick);
				this.cbBacSi.DropDownStyle = ComboBoxStyle.DropDownList;
				this.cbBacSi.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.cbBacSi.Location = new Point (104, 80);
				this.cbBacSi.Name = "cbBacSi";
				this.cbBacSi.Size = new System.Drawing.Size (160, 22);
				this.cbBacSi.TabIndex = 20;
				this.lbBacSi.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.lbBacSi.ForeColor = SystemColors.ControlText;
				this.lbBacSi.Location = new Point (16, 83);
				this.lbBacSi.Name = "lbBacSi";
				this.lbBacSi.TabIndex = 19;
				this.lbBacSi.Text = "B?c s? kh?m:";
				this.tbCanNang.BorderStyle = BorderStyle.FixedSingle;
				this.tbCanNang.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbCanNang.Location = new Point (264, 56);
				this.tbCanNang.Name = "tbCanNang";
				this.tbCanNang.Size = new System.Drawing.Size (64, 22);
				this.tbCanNang.TabIndex = 11;
				this.tbCanNang.Text = "";
				this.tbHuyetAp.BorderStyle = BorderStyle.FixedSingle;
				this.tbHuyetAp.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbHuyetAp.Location = new Point (264, 32);
				this.tbHuyetAp.Name = "tbHuyetAp";
				this.tbHuyetAp.Size = new System.Drawing.Size (64, 22);
				this.tbHuyetAp.TabIndex = 9;
				this.tbHuyetAp.Text = "";
				this.label12.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label12.ForeColor = SystemColors.ControlText;
				this.label12.Location = new Point (192, 56);
				this.label12.Name = "label12";
				this.label12.TabIndex = 16;
				this.label12.Text = "C?n n?ng:";
				this.label11.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label11.ForeColor = SystemColors.ControlText;
				this.label11.Location = new Point (192, 32);
				this.label11.Name = "label11";
				this.label11.Size = new System.Drawing.Size (72, 23);
				this.label11.TabIndex = 15;
				this.label11.Text = "Huy?t ?p:";
				this.tbNhietDo.BorderStyle = BorderStyle.FixedSingle;
				this.tbNhietDo.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbNhietDo.Location = new Point (104, 56);
				this.tbNhietDo.Name = "tbNhietDo";
				this.tbNhietDo.Size = new System.Drawing.Size (72, 22);
				this.tbNhietDo.TabIndex = 10;
				this.tbNhietDo.Text = "";
				this.tbMach.BorderStyle = BorderStyle.FixedSingle;
				this.tbMach.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbMach.Location = new Point (104, 32);
				this.tbMach.Name = "tbMach";
				this.tbMach.Size = new System.Drawing.Size (72, 22);
				this.tbMach.TabIndex = 8;
				this.tbMach.Text = "";
				this.tbMach.KeyPress += new KeyPressEventHandler (this.tbMach_KeyPress);
				this.label10.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label10.ForeColor = SystemColors.ControlText;
				this.label10.Location = new Point (16, 56);
				this.label10.Name = "label10";
				this.label10.Size = new System.Drawing.Size (72, 16);
				this.label10.TabIndex = 1;
				this.label10.Text = "Nhi?t ??:";
				this.label9.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label9.ForeColor = SystemColors.ControlText;
				this.label9.Location = new Point (16, 32);
				this.label9.Name = "label9";
				this.label9.Size = new System.Drawing.Size (48, 16);
				this.label9.TabIndex = 0;
				this.label9.Text = "M?ch:";
				this.tbBenhNgoaiDS.AutoSize = false;
				this.tbBenhNgoaiDS.BorderStyle = BorderStyle.FixedSingle;
				this.tbBenhNgoaiDS.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbBenhNgoaiDS.Location = new Point (152, 288);
				this.tbBenhNgoaiDS.Multiline = true;
				this.tbBenhNgoaiDS.Name = "tbBenhNgoaiDS";
				this.tbBenhNgoaiDS.ScrollBars = ScrollBars.Both;
				this.tbBenhNgoaiDS.Size = new System.Drawing.Size (176, 40);
				this.tbBenhNgoaiDS.TabIndex = 19;
				this.tbBenhNgoaiDS.Text = "";
				this.label15.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label15.ForeColor = SystemColors.ControlText;
				this.label15.Location = new Point (16, 288);
				this.label15.Name = "label15";
				this.label15.Size = new System.Drawing.Size (120, 40);
				this.label15.TabIndex = 4;
				this.label15.Text = "Tri?u ch?ng ngo?i DS:";
				this.listView1.AllowColumnReorder = true;
				this.listView1.BorderStyle = BorderStyle.FixedSingle;
				this.listView1.FullRowSelect = true;
				this.listView1.Location = new Point (200, 113);
				this.listView1.MultiSelect = false;
				this.listView1.Name = "listView1";
				this.listView1.Size = new System.Drawing.Size (128, 168);
				this.listView1.TabIndex = 14;
				this.listView1.View = View.List;
				this.listView1.MouseDown += new MouseEventHandler (this.listView1_MouseDown);
				this.listView1.DoubleClick += new EventHandler (this.listView1_DoubleClick);
				this.listView1.SelectedIndexChanged += new EventHandler (this.listView1_SelectedIndexChanged);
				this.tbDienBien.BorderStyle = BorderStyle.FixedSingle;
				this.tbDienBien.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbDienBien.Location = new Point (112, 136);
				this.tbDienBien.Multiline = true;
				this.tbDienBien.Name = "tbDienBien";
				this.tbDienBien.ScrollBars = ScrollBars.Both;
				this.tbDienBien.Size = new System.Drawing.Size (184, 56);
				this.tbDienBien.TabIndex = 22;
				this.tbDienBien.Text = "";
				this.label23.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label23.ForeColor = SystemColors.ControlText;
				this.label23.Location = new Point (3, 139);
				this.label23.Name = "label23";
				this.label23.Size = new System.Drawing.Size (117, 20);
				this.label23.TabIndex = 21;
				this.label23.Text = "Di?n bi?n b?nh:";
				this.label19.Font = new System.Drawing.Font ("Verdana", 12F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label19.ForeColor = Color.MediumBlue;
				this.label19.Location = new Point (408, 10);
				this.label19.Name = "label19";
				this.label19.Size = new System.Drawing.Size (184, 23);
				this.label19.TabIndex = 28;
				this.label19.Text = "H? S? B?nh ?n";
				this.btThoat.FlatStyle = FlatStyle.Popup;
				this.btThoat.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btThoat.Location = new Point (772, 568);
				this.btThoat.Name = "btThoat";
				this.btThoat.Size = new System.Drawing.Size (80, 23);
				this.btThoat.TabIndex = 32;
				this.btThoat.Text = "Tho?t";
				this.btThoat.Click += new EventHandler (this.btThoat_Click);
				theControlArray5 = new Control[7];
				theControlArray5[0] = ((Control) this.tbBSu);
				theControlArray5[1] = ((Control) this.label14);
				theControlArray5[2] = ((Control) this.tbBenhSu);
				theControlArray5[3] = ((Control) this.label13);
				theControlArray5[4] = ((Control) this.tbDienBien);
				theControlArray5[5] = ((Control) this.chkHetBenh);
				theControlArray5[6] = ((Control) this.label23);
				this.groupBox3.Controls.AddRange (theControlArray5);
				this.groupBox3.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox3.ForeColor = SystemColors.ControlText;
				this.groupBox3.Location = new Point (360, 44);
				this.groupBox3.Name = "groupBox3";
				this.groupBox3.Size = new System.Drawing.Size (312, 208);
				this.groupBox3.TabIndex = 17;
				this.groupBox3.TabStop = false;
				this.tbBSu.AutoSize = false;
				this.tbBSu.BorderStyle = BorderStyle.FixedSingle;
				this.tbBSu.Location = new Point (112, 79);
				this.tbBSu.Multiline = true;
				this.tbBSu.Name = "tbBSu";
				this.tbBSu.ScrollBars = ScrollBars.Both;
				this.tbBSu.Size = new System.Drawing.Size (184, 48);
				this.tbBSu.TabIndex = 24;
				this.tbBSu.Text = "";
				this.label14.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label14.Location = new Point (16, 88);
				this.label14.Name = "label14";
				this.label14.Size = new System.Drawing.Size (72, 23);
				this.label14.TabIndex = 23;
				this.label14.Text = "B?nh s?:";
				this.tbBenhSu.AutoSize = false;
				this.tbBenhSu.BorderStyle = BorderStyle.FixedSingle;
				this.tbBenhSu.ContextMenu = this.ctmTienCan;
				this.tbBenhSu.Location = new Point (112, 24);
				this.tbBenhSu.Multiline = true;
				this.tbBenhSu.Name = "tbBenhSu";
				this.tbBenhSu.ScrollBars = ScrollBars.Both;
				this.tbBenhSu.Size = new System.Drawing.Size (184, 48);
				this.tbBenhSu.TabIndex = 17;
				this.tbBenhSu.Text = "";
				this.label13.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label13.Location = new Point (16, 31);
				this.label13.Name = "label13";
				this.label13.Size = new System.Drawing.Size (72, 23);
				this.label13.TabIndex = 0;
				this.label13.Text = "Ti?n c?n:";
				this.chkHetBenh.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.chkHetBenh.ForeColor = Color.Blue;
				this.chkHetBenh.Location = new Point (16, 168);
				this.chkHetBenh.Name = "chkHetBenh";
				this.chkHetBenh.Size = new System.Drawing.Size (88, 24);
				this.chkHetBenh.TabIndex = 25;
				this.chkHetBenh.Text = "Kh?i b?nh";
				this.chkHetBenh.Click += new EventHandler (this.chkHetBenh_Click);
				this.btLuuBenhAn.Enabled = false;
				this.btLuuBenhAn.FlatStyle = FlatStyle.Popup;
				this.btLuuBenhAn.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btLuuBenhAn.Location = new Point (660, 568);
				this.btLuuBenhAn.Name = "btLuuBenhAn";
				this.btLuuBenhAn.Size = new System.Drawing.Size (104, 23);
				this.btLuuBenhAn.TabIndex = 30;
				this.btLuuBenhAn.Text = "L?u B?nh ?n";
				this.btLuuBenhAn.Click += new EventHandler (this.btLuuBenhAn_Click);
				theControlArray6 = new Control[19];
				theControlArray6[0] = ((Control) this.dtpBirthDay);
				theControlArray6[1] = ((Control) this.rbMale);
				theControlArray6[2] = ((Control) this.tbJob);
				theControlArray6[3] = ((Control) this.tbPhone);
				theControlArray6[4] = ((Control) this.tbAddress);
				theControlArray6[5] = ((Control) this.tbTuoi);
				theControlArray6[6] = ((Control) this.tbID);
				theControlArray6[7] = ((Control) this.tbFullName);
				theControlArray6[8] = ((Control) this.label7);
				theControlArray6[9] = ((Control) this.label6);
				theControlArray6[10] = ((Control) this.label5);
				theControlArray6[11] = ((Control) this.label4);
				theControlArray6[12] = ((Control) this.label3);
				theControlArray6[13] = ((Control) this.label2);
				theControlArray6[14] = ((Control) this.label1);
				theControlArray6[15] = ((Control) this.label8);
				theControlArray6[16] = ((Control) this.rbFemale);
				theControlArray6[17] = ((Control) this.tbDiDong);
				theControlArray6[18] = ((Control) this.label21);
				this.groupBox1.Controls.AddRange (theControlArray6);
				this.groupBox1.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox1.ForeColor = Color.Coral;
				this.groupBox1.Location = new Point (8, 42);
				this.groupBox1.Name = "groupBox1";
				this.groupBox1.Size = new System.Drawing.Size (344, 208);
				this.groupBox1.TabIndex = 15;
				this.groupBox1.TabStop = false;
				this.groupBox1.Text = "Th?ng Tin C? Nh?n";
				this.dtpBirthDay.CustomFormat = "dd/MM/yyyy";
				this.dtpBirthDay.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.dtpBirthDay.Format = DateTimePickerFormat.Custom;
				this.dtpBirthDay.Location = new Point (109, 80);
				this.dtpBirthDay.Name = "dtpBirthDay";
				this.dtpBirthDay.Size = new System.Drawing.Size (104, 22);
				this.dtpBirthDay.TabIndex = 1;
				this.dtpBirthDay.Leave += new EventHandler (this.dtpBirthDay_Leave);
				this.rbMale.Checked = true;
				this.rbMale.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.rbMale.ForeColor = SystemColors.ControlText;
				this.rbMale.Location = new Point (221, 101);
				this.rbMale.Name = "rbMale";
				this.rbMale.Size = new System.Drawing.Size (56, 24);
				this.rbMale.TabIndex = 2;
				this.rbMale.TabStop = true;
				this.rbMale.Text = "Nam";
				this.tbJob.BorderStyle = BorderStyle.FixedSingle;
				this.tbJob.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbJob.Location = new Point (109, 176);
				this.tbJob.Name = "tbJob";
				this.tbJob.Size = new System.Drawing.Size (227, 22);
				this.tbJob.TabIndex = 7;
				this.tbJob.Text = "";
				this.tbPhone.BorderStyle = BorderStyle.FixedSingle;
				this.tbPhone.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbPhone.Location = new Point (109, 152);
				this.tbPhone.MaxLength = 10;
				this.tbPhone.Name = "tbPhone";
				this.tbPhone.Size = new System.Drawing.Size (96, 22);
				this.tbPhone.TabIndex = 5;
				this.tbPhone.Text = "";
				this.tbPhone.KeyPress += new KeyPressEventHandler (this.tbPhone_KeyPress);
				this.tbAddress.BorderStyle = BorderStyle.FixedSingle;
				this.tbAddress.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbAddress.Location = new Point (109, 128);
				this.tbAddress.Name = "tbAddress";
				this.tbAddress.Size = new System.Drawing.Size (227, 22);
				this.tbAddress.TabIndex = 4;
				this.tbAddress.Text = "";
				this.tbTuoi.BorderStyle = BorderStyle.FixedSingle;
				this.tbTuoi.Enabled = false;
				this.tbTuoi.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbTuoi.Location = new Point (109, 104);
				this.tbTuoi.Name = "tbTuoi";
				this.tbTuoi.Size = new System.Drawing.Size (40, 22);
				this.tbTuoi.TabIndex = 111;
				this.tbTuoi.Text = "";
				this.tbID.BorderStyle = BorderStyle.FixedSingle;
				this.tbID.Enabled = false;
				this.tbID.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbID.Location = new Point (109, 32);
				this.tbID.Name = "tbID";
				this.tbID.Size = new System.Drawing.Size (96, 22);
				this.tbID.TabIndex = 115;
				this.tbID.Text = "";
				this.tbFullName.BorderStyle = BorderStyle.FixedSingle;
				this.tbFullName.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbFullName.Location = new Point (109, 56);
				this.tbFullName.Name = "tbFullName";
				this.tbFullName.Size = new System.Drawing.Size (227, 22);
				this.tbFullName.TabIndex = 0;
				this.tbFullName.Text = "";
				this.label7.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label7.ForeColor = SystemColors.ControlText;
				this.label7.Location = new Point (16, 176);
				this.label7.Name = "label7";
				this.label7.Size = new System.Drawing.Size (96, 23);
				this.label7.TabIndex = 6;
				this.label7.Text = "Ngh? nghi?p:";
				this.label6.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label6.ForeColor = SystemColors.ControlText;
				this.label6.Location = new Point (16, 152);
				this.label6.Name = "label6";
				this.label6.Size = new System.Drawing.Size (80, 23);
				this.label6.TabIndex = 5;
				this.label6.Text = "?i?n tho?i:";
				this.label5.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label5.ForeColor = SystemColors.ControlText;
				this.label5.Location = new Point (16, 128);
				this.label5.Name = "label5";
				this.label5.Size = new System.Drawing.Size (64, 23);
				this.label5.TabIndex = 4;
				this.label5.Text = "??a ch?:";
				this.label4.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label4.ForeColor = SystemColors.ControlText;
				this.label4.Location = new Point (16, 104);
				this.label4.Name = "label4";
				this.label4.Size = new System.Drawing.Size (48, 23);
				this.label4.TabIndex = 3;
				this.label4.Text = "Tu?i:";
				this.label3.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label3.ForeColor = SystemColors.ControlText;
				this.label3.Location = new Point (16, 80);
				this.label3.Name = "label3";
				this.label3.Size = new System.Drawing.Size (80, 23);
				this.label3.TabIndex = 2;
				this.label3.Text = "Ng?y sinh:";
				this.label2.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label2.ForeColor = SystemColors.ControlText;
				this.label2.Location = new Point (16, 56);
				this.label2.Name = "label2";
				this.label2.Size = new System.Drawing.Size (80, 23);
				this.label2.TabIndex = 1;
				this.label2.Text = "H? v? T?n:";
				this.label1.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label1.ForeColor = SystemColors.ControlText;
				this.label1.Location = new Point (16, 32);
				this.label1.Name = "label1";
				this.label1.Size = new System.Drawing.Size (56, 23);
				this.label1.TabIndex = 0;
				this.label1.Text = "S? ID:";
				this.label8.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label8.ForeColor = SystemColors.ControlText;
				this.label8.Location = new Point (165, 104);
				this.label8.Name = "label8";
				this.label8.TabIndex = 155;
				this.label8.Text = "Ph?i:";
				this.rbFemale.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.rbFemale.ForeColor = SystemColors.ControlText;
				this.rbFemale.Location = new Point (288, 100);
				this.rbFemale.Name = "rbFemale";
				this.rbFemale.Size = new System.Drawing.Size (48, 24);
				this.rbFemale.TabIndex = 3;
				this.rbFemale.Text = "N?";
				this.tbDiDong.BorderStyle = BorderStyle.FixedSingle;
				this.tbDiDong.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbDiDong.Location = new Point (246, 152);
				this.tbDiDong.MaxLength = 10;
				this.tbDiDong.Name = "tbDiDong";
				this.tbDiDong.Size = new System.Drawing.Size (90, 22);
				this.tbDiDong.TabIndex = 6;
				this.tbDiDong.Text = "";
				this.tbDiDong.KeyPress += new KeyPressEventHandler (this.tbDiDong_KeyPress);
				this.label21.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label21.ForeColor = SystemColors.ControlText;
				this.label21.Location = new Point (213, 154);
				this.label21.Name = "label21";
				this.label21.TabIndex = 1356;
				this.label21.Text = "D?:";
				this.btCapNhat.FlatStyle = FlatStyle.Popup;
				this.btCapNhat.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btCapNhat.Location = new Point (660, 568);
				this.btCapNhat.Name = "btCapNhat";
				this.btCapNhat.Size = new System.Drawing.Size (104, 23);
				this.btCapNhat.TabIndex = 31;
				this.btCapNhat.Text = "C?p Nh?t";
				this.btCapNhat.Click += new EventHandler (this.btCapNhat_Click);
				theControlArray7 = new Control[6];
				theControlArray7[0] = ((Control) this.tbCDNgoaiDS);
				theControlArray7[1] = ((Control) this.label20);
				theControlArray7[2] = ((Control) this.treeView2);
				theControlArray7[3] = ((Control) this.btRemoveChanDoan);
				theControlArray7[4] = ((Control) this.btAddChanDoan);
				theControlArray7[5] = ((Control) this.lbCD);
				this.groupBox4.Controls.AddRange (theControlArray7);
				this.groupBox4.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox4.ForeColor = Color.Coral;
				this.groupBox4.Location = new Point (360, 258);
				this.groupBox4.Name = "groupBox4";
				this.groupBox4.Size = new System.Drawing.Size (312, 304);
				this.groupBox4.TabIndex = 32;
				this.groupBox4.TabStop = false;
				this.groupBox4.Text = "Ch?n ?o?n";
				this.tbCDNgoaiDS.BorderStyle = BorderStyle.FixedSingle;
				this.tbCDNgoaiDS.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbCDNgoaiDS.Location = new Point (136, 248);
				this.tbCDNgoaiDS.Multiline = true;
				this.tbCDNgoaiDS.Name = "tbCDNgoaiDS";
				this.tbCDNgoaiDS.ScrollBars = ScrollBars.Both;
				this.tbCDNgoaiDS.Size = new System.Drawing.Size (168, 48);
				this.tbCDNgoaiDS.TabIndex = 23;
				this.tbCDNgoaiDS.Text = "";
				this.label20.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label20.ForeColor = SystemColors.ControlDarkDark;
				this.label20.Location = new Point (8, 256);
				this.label20.Name = "label20";
				this.label20.Size = new System.Drawing.Size (120, 40);
				this.label20.TabIndex = 28;
				this.label20.Text = "Ch?n ?o?n ngo?i danh s?ch:";
				this.treeView2.BorderStyle = BorderStyle.FixedSingle;
				this.treeView2.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.treeView2.ImageIndex = -1;
				this.treeView2.Location = new Point (8, 23);
				this.treeView2.Name = "treeView2";
				this.treeView2.SelectedImageIndex = -1;
				this.treeView2.Size = new System.Drawing.Size (128, 212);
				this.treeView2.TabIndex = 20;
				this.treeView2.DoubleClick += new EventHandler (this.treeView2_DoubleClick);
				this.btRemoveChanDoan.FlatStyle = FlatStyle.Popup;
				this.btRemoveChanDoan.ForeColor = SystemColors.ControlText;
				this.btRemoveChanDoan.Image = ((Image) ((Bitmap) theResourceManager.GetObject ("btRemoveChanDoan.Image")));
				this.btRemoveChanDoan.Location = new Point (144, 90);
				this.btRemoveChanDoan.Name = "btRemoveChanDoan";
				this.btRemoveChanDoan.Size = new System.Drawing.Size (32, 23);
				this.btRemoveChanDoan.TabIndex = 22;
				this.btRemoveChanDoan.Click += new EventHandler (this.btRemoveChanDoan_Click);
				this.btAddChanDoan.FlatStyle = FlatStyle.Popup;
				this.btAddChanDoan.ForeColor = SystemColors.ControlText;
				this.btAddChanDoan.Image = ((Image) ((Bitmap) theResourceManager.GetObject ("btAddChanDoan.Image")));
				this.btAddChanDoan.Location = new Point (144, 64);
				this.btAddChanDoan.Name = "btAddChanDoan";
				this.btAddChanDoan.Size = new System.Drawing.Size (32, 23);
				this.btAddChanDoan.TabIndex = 21;
				this.btAddChanDoan.Click += new EventHandler (this.btAddChanDoan_Click);
				this.lbCD.BorderStyle = BorderStyle.FixedSingle;
				this.lbCD.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.lbCD.HorizontalScrollbar = true;
				this.lbCD.ItemHeight = 14;
				this.lbCD.Location = new Point (184, 24);
				this.lbCD.Name = "lbCD";
				this.lbCD.ScrollAlwaysVisible = true;
				this.lbCD.Size = new System.Drawing.Size (120, 212);
				this.lbCD.TabIndex = 23;
				this.lbCD.DoubleClick += new EventHandler (this.lbCD_DoubleClick);
				this.lbCD.SelectedIndexChanged += new EventHandler (this.lbCD_SelectedIndexChanged);
				this.linkLabel1.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.linkLabel1.Location = new Point (148, 19);
				this.linkLabel1.Name = "linkLabel1";
				this.linkLabel1.Size = new System.Drawing.Size (80, 21);
				this.linkLabel1.TabIndex = 0;
				this.linkLabel1.TabStop = true;
				this.linkLabel1.Text = "Toa Thu?c";
				this.toolTip1.SetToolTip (((Control) this.linkLabel1), "Nh?p Toa Thu?c");
				this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler (this.linkLabel1_LinkClicked);
				theControlArray8 = new Control[13];
				theControlArray8[0] = ((Control) this.chbBAGoc);
				theControlArray8[1] = ((Control) this.linkBAGoc);
				theControlArray8[2] = ((Control) this.label22);
				theControlArray8[3] = ((Control) this.label16);
				theControlArray8[4] = ((Control) this.label17);
				theControlArray8[5] = ((Control) this.dtpNgayTaiKham);
				theControlArray8[6] = ((Control) this.tbNgayKham);
				theControlArray8[7] = ((Control) this.label18);
				theControlArray8[8] = ((Control) this.cbETimes);
				theControlArray8[9] = ((Control) this.cboTaiKham);
				theControlArray8[10] = ((Control) this.txtTaiKham);
				theControlArray8[11] = ((Control) this.tbLanKham);
				theControlArray8[12] = ((Control) this.dtpNgayKham);
				this.groupBox7.Controls.AddRange (theControlArray8);
				this.groupBox7.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox7.Location = new Point (680, 267);
				this.groupBox7.Name = "groupBox7";
				this.groupBox7.Size = new System.Drawing.Size (232, 124);
				this.groupBox7.TabIndex = 1356;
				this.groupBox7.TabStop = false;
				this.chbBAGoc.Location = new Point (176, 40);
				this.chbBAGoc.Name = "chbBAGoc";
				this.chbBAGoc.Size = new System.Drawing.Size (16, 24);
				this.chbBAGoc.TabIndex = 1360;
				this.chbBAGoc.CheckedChanged += new EventHandler (this.chbBAGoc_CheckedChanged);
				this.linkBAGoc.AutoSize = true;
				this.linkBAGoc.Location = new Point (173, 21);
				this.linkBAGoc.Name = "linkBAGoc";
				this.linkBAGoc.Size = new System.Drawing.Size (47, 15);
				this.linkBAGoc.TabIndex = 1359;
				this.linkBAGoc.TabStop = true;
				this.linkBAGoc.Text = "BA g?c";
				this.label22.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label22.Location = new Point (7, 45);
				this.label22.Name = "label22";
				this.label22.Size = new System.Drawing.Size (105, 16);
				this.label22.TabIndex = 1356;
				this.label22.Text = "L?n t?i kh?m:";
				this.cboTaiKham.DrawMode = DrawMode.OwnerDrawFixed;
				this.cboTaiKham.DropDownStyle = ComboBoxStyle.DropDownList;
				this.cboTaiKham.Font = new System.Drawing.Font ("Verdana Ref", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.cboTaiKham.Location = new Point (112, 42);
				this.cboTaiKham.Name = "cboTaiKham";
				this.cboTaiKham.Size = new System.Drawing.Size (56, 24);
				this.cboTaiKham.TabIndex = 1357;
				this.cboTaiKham.Visible = false;
				this.cboTaiKham.SelectedIndexChanged += new EventHandler (this.cboTaiKham_SelectedIndexChanged);
				this.txtTaiKham.BorderStyle = BorderStyle.FixedSingle;
				this.txtTaiKham.Enabled = false;
				this.txtTaiKham.Font = new System.Drawing.Font ("Verdana Ref", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtTaiKham.Location = new Point (112, 42);
				this.txtTaiKham.Name = "txtTaiKham";
				this.txtTaiKham.Size = new System.Drawing.Size (48, 23);
				this.txtTaiKham.TabIndex = 1358;
				this.txtTaiKham.Text = "";
				theControlArray9 = new Control[1];
				theControlArray9[0] = ((Control) this.tbLoiKhuyen);
				this.groupBox8.Controls.AddRange (theControlArray9);
				this.groupBox8.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox8.ForeColor = Color.Coral;
				this.groupBox8.Location = new Point (680, 396);
				this.groupBox8.Name = "groupBox8";
				this.groupBox8.Size = new System.Drawing.Size (232, 112);
				this.groupBox8.TabIndex = 1357;
				this.groupBox8.TabStop = false;
				this.groupBox8.Text = "L?i Khuy?n C?a B?c S?";
				this.tbLoiKhuyen.BorderStyle = BorderStyle.FixedSingle;
				this.tbLoiKhuyen.ContextMenu = this.ctmLoiKhuyen;
				this.tbLoiKhuyen.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbLoiKhuyen.Location = new Point (16, 24);
				this.tbLoiKhuyen.Multiline = true;
				this.tbLoiKhuyen.Name = "tbLoiKhuyen";
				this.tbLoiKhuyen.ScrollBars = ScrollBars.Vertical;
				this.tbLoiKhuyen.Size = new System.Drawing.Size (200, 80);
				this.tbLoiKhuyen.TabIndex = 0;
				this.tbLoiKhuyen.Text = "";
				theControlArray10 = new Control[3];
				theControlArray10[0] = ((Control) this.linkNoiSoi);
				theControlArray10[1] = ((Control) this.linkLabel1);
				theControlArray10[2] = ((Control) this.linkXetNghiem);
				this.groupBox9.Controls.AddRange (theControlArray10);
				this.groupBox9.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox9.Location = new Point (680, 512);
				this.groupBox9.Name = "groupBox9";
				this.groupBox9.Size = new System.Drawing.Size (232, 48);
				this.groupBox9.TabIndex = 1358;
				this.groupBox9.TabStop = false;
				this.linkNoiSoi.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.linkNoiSoi.Location = new Point (5, 16);
				this.linkNoiSoi.Name = "linkNoiSoi";
				this.linkNoiSoi.Size = new System.Drawing.Size (58, 23);
				this.linkNoiSoi.TabIndex = 1;
				this.linkNoiSoi.TabStop = true;
				this.linkNoiSoi.Text = "N?i Soi";
				this.linkNoiSoi.TextAlign = ContentAlignment.MiddleCenter;
				this.linkNoiSoi.LinkClicked += new LinkLabelLinkClickedEventHandler (this.linkNoiSoi_LinkClicked);
				this.linkXetNghiem.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.linkXetNghiem.Location = new Point (62, 16);
				this.linkXetNghiem.Name = "linkXetNghiem";
				this.linkXetNghiem.Size = new System.Drawing.Size (88, 23);
				this.linkXetNghiem.TabIndex = 0;
				this.linkXetNghiem.TabStop = true;
				this.linkXetNghiem.Text = "X?t Nghi?m";
				this.linkXetNghiem.TextAlign = ContentAlignment.MiddleCenter;
				this.linkXetNghiem.LinkClicked += new LinkLabelLinkClickedEventHandler (this.linkXetNghiem_LinkClicked);
				this.btTaiKham.FlatStyle = FlatStyle.Popup;
				this.btTaiKham.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btTaiKham.Location = new Point (556, 568);
				this.btTaiKham.Name = "btTaiKham";
				this.btTaiKham.Size = new System.Drawing.Size (96, 23);
				this.btTaiKham.TabIndex = 1359;
				this.btTaiKham.Text = "T?i Kh?m";
				this.btTaiKham.Click += new EventHandler (this.btTaiKham_Click);
				this.imageList1.ColorDepth = ColorDepth.Depth8Bit;
				this.imageList1.ImageSize = new System.Drawing.Size (16, 16);
				this.imageList1.ImageStream = ((ImageListStreamer) theResourceManager.GetObject ("imageList1.ImageStream"));
				this.imageList1.TransparentColor = Color.Transparent;
				this.AutoScaleBaseSize = new System.Drawing.Size (7, 16);
				this.AutoScroll = true;
				base.ClientSize = new System.Drawing.Size (922, 605);
				theControlArray11 = new Control[15];
				theControlArray11[0] = ((Control) this.btTaiKham);
				theControlArray11[1] = ((Control) this.groupBox3);
				theControlArray11[2] = ((Control) this.groupBox9);
				theControlArray11[3] = ((Control) this.groupBox8);
				theControlArray11[4] = ((Control) this.groupBox7);
				theControlArray11[5] = ((Control) this.groupBox4);
				theControlArray11[6] = ((Control) this.btLapBenhAnMoi);
				theControlArray11[7] = ((Control) this.groupBox5);
				theControlArray11[8] = ((Control) this.groupBox6);
				theControlArray11[9] = ((Control) this.groupBox2);
				theControlArray11[10] = ((Control) this.btThoat);
				theControlArray11[11] = ((Control) this.groupBox1);
				theControlArray11[12] = ((Control) this.label19);
				theControlArray11[13] = ((Control) this.btLuuBenhAn);
				theControlArray11[14] = ((Control) this.btCapNhat);
				base.Controls.AddRange (theControlArray11);
				this.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
				base.MaximizeBox = false;
				base.MinimizeBox = false;
				base.Name = "frmHoSoBenhAn";
				base.StartPosition = FormStartPosition.CenterParent;
				this.Text = "H? S? B?nh ?n";
				base.Load += new EventHandler (this.frmHoSoBenhAn_Load);
				this.groupBox5.ResumeLayout (false);
				this.panel1.ResumeLayout (false);
				this.groupBox6.ResumeLayout (false);
				this.groupBox2.ResumeLayout (false);
				this.groupBox3.ResumeLayout (false);
				this.groupBox1.ResumeLayout (false);
				this.groupBox4.ResumeLayout (false);
				this.groupBox7.ResumeLayout (false);
				this.groupBox8.ResumeLayout (false);
				this.groupBox9.ResumeLayout (false);
				base.ResumeLayout (false);
				return;
			}
			
			private void insertChildNode (string strName)
			
			{
				TreeNode theTreeNode = this.node.Nodes.Add (strName);
				return;
			}
			
			private void insertParentNode (string strName)
			
			{
				this.node = new TreeNode (strName);
				return;
			}
			
			private bool IsFloat (string Number)
			
			{
				bool theBoolean;
				
			L_0000:
				try
				{
					float theSingle = float.Parse (Number);
					theBoolean = true;
				}
				catch
				{
					
				L_000B:
					
					{
					}
					theBoolean = false;
				}
				
			L_0010:
				
				{
				}
				return theBoolean;
			}
			
			private bool IsNumber (string Number)
			
			{
				bool theBoolean;
				
			L_0000:
				try
				{
					long theLong = long.Parse (Number);
					theBoolean = true;
				}
				catch
				{
					
				L_000B:
					
					{
					}
					theBoolean = false;
				}
				
			L_0010:
				
				{
				}
				return theBoolean;
			}
			
			private bool KTKhoiBenh ()
			
			{
				bool theBoolean;
				bool theBoolean2;
				bool theBoolean3;
				bool theBoolean4;
				string theString;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				string theString2;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				SqlDataAdapter theSqlDataAdapter4;
				DataSet theDataSet4;
				SqlDataAdapter theSqlDataAdapter5;
				DataSet theDataSet5;
				bool theBoolean5;
				theString = string.Empty;
				if (! this.cboTaiKham.Visible)
				{
					goto L_003D;
				}
				theString = string.Concat ("SELECT clrISN FROM ClinicalRecord WHERE clrRexaminationTimes =", this.cboTaiKham.Text, " and clrExaminationTimes = ", this.cbETimes.Text);
				goto L_0054;
				
			L_003D:
				
				{
				}
				theString = string.Concat ("SELECT clrISN FROM ClinicalRecord WHERE clrExaminationTimes = ", this.cbETimes.Text);
				
			L_0054:
				
				{
				}
				theSqlDataAdapter = new SqlDataAdapter (theString, this.connStr);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, "clrISN");
				theSqlDataAdapter.Dispose ();
				theString2 = theDataSet.Tables["clrISN"].Rows[0][0].ToString ();
				theSqlDataAdapter2 = new SqlDataAdapter (string.Concat ("SELECT * FROM PathologicalClinical WHERE clrISN=", theString2), this.connStr);
				theDataSet2 = new DataSet ();
				int i2 = theSqlDataAdapter2.Fill (theDataSet2, "PathologicalClinical");
				theSqlDataAdapter2.Dispose ();
				if ((theDataSet2 != null) && ((theDataSet2.Tables.Count != 0) && (theDataSet2.Tables[0].Rows.Count != 0)))
				{
					goto L_010E;
				}
				
			L_010A:
				
				{
				}
				theBoolean = false;
				goto L_0110;
				
			L_010E:
				
				{
				}
				theBoolean = true;
				
			L_0110:
				
				{
				}
				theSqlDataAdapter3 = new SqlDataAdapter (string.Concat ("SELECT * FROM PathologicalOutList WHERE clrISN=", theString2), this.connStr);
				theDataSet3 = new DataSet ();
				int i3 = theSqlDataAdapter3.Fill (theDataSet3, "PathologicalOutList");
				theSqlDataAdapter3.Dispose ();
				if ((theDataSet3 != null) && ((theDataSet3.Tables.Count != 0) && (theDataSet3.Tables[0].Rows.Count != 0)))
				{
					goto L_0175;
				}
				
			L_0171:
				
				{
				}
				theBoolean2 = false;
				goto L_01E1;
				
			L_0175:
				
				{
				}
				if ((theDataSet3.Tables[0].Rows[0]["polPathologicalSignsOutList"].ToString () != string.Empty) && (theDataSet3.Tables[0].Rows[0]["polPathologicalSignsOutList"].ToString () != ""))
				{
					goto L_01DF;
				}
				
			L_01DB:
				
				{
				}
				theBoolean2 = false;
				goto L_01E1;
				
			L_01DF:
				
				{
				}
				theBoolean2 = true;
				
			L_01E1:
				
				{
				}
				theSqlDataAdapter4 = new SqlDataAdapter (string.Concat ("SELECT * FROM ClinicalSicks WHERE clrISN=", theString2), this.connStr);
				theDataSet4 = new DataSet ();
				int i4 = theSqlDataAdapter4.Fill (theDataSet4, "ClinicalSicks");
				theSqlDataAdapter4.Dispose ();
				if ((theDataSet4 != null) && ((theDataSet4.Tables.Count != 0) && (theDataSet4.Tables[0].Rows.Count != 0)))
				{
					goto L_0246;
				}
				
			L_0242:
				
				{
				}
				theBoolean3 = false;
				goto L_0248;
				
			L_0246:
				
				{
				}
				theBoolean3 = true;
				
			L_0248:
				
				{
				}
				theSqlDataAdapter5 = new SqlDataAdapter (string.Concat ("SELECT * FROM ClinicalRecord WHERE clrISN=", theString2), this.connStr);
				theDataSet5 = new DataSet ();
				int i5 = theSqlDataAdapter5.Fill (theDataSet5, "ClinicalRecord");
				theSqlDataAdapter5.Dispose ();
				if (theDataSet5 == null)
				{
					goto L_02A9;
				}
				if (theDataSet5.Tables.Count == 0)
				{
					goto L_02A9;
				}
				if (theDataSet5.Tables[0].Rows.Count != 0)
				{
					goto L_02AD;
				}
				
			L_02A9:
				
				{
				}
				theBoolean4 = false;
				goto L_0319;
				
			L_02AD:
				
				{
				}
				if (theDataSet5.Tables[0].Rows[0]["clrSickNotInList"].ToString () == string.Empty)
				{
					goto L_0313;
				}
				if (theDataSet5.Tables[0].Rows[0]["clrSickNotInList"].ToString () != "")
				{
					goto L_0317;
				}
				
			L_0313:
				
				{
				}
				theBoolean4 = false;
				goto L_0319;
				
			L_0317:
				
				{
				}
				theBoolean4 = true;
				
			L_0319:
				
				{
				}
				if (theBoolean)
				{
					goto L_032A;
				}
				if (theBoolean2)
				{
					goto L_032A;
				}
				if (theBoolean3)
				{
					goto L_032A;
				}
				if (theBoolean4)
				{
					goto L_032A;
				}
				theBoolean5 = false;
				goto L_032F;
				
			L_032A:
				
				{
				}
				theBoolean5 = true;
				goto L_032F;
				
			L_032F:
				
				{
				}
				return theBoolean5;
			}
			
			private void lbCD_DoubleClick (object sender, EventArgs e)
			
			{
				this.lbCD.Items.Remove (this.lbCD.SelectedItem);
				return;
			}
			
			private void lbCD_SelectedIndexChanged (object sender, EventArgs e)
			
			{
				this.toolTip1.SetToolTip (((Control) this.lbCD), this.lbCD.Text.ToString ());
				return;
			}
			
			private void linkLabel1_LinkClicked (object sender, LinkLabelLinkClickedEventArgs e)
			
			{
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				int i;
				int i2;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				string theString;
				string theString2;
				frmToaThuocHoSoBenhAn theFrmToaThuocHoSoBenhAn;
				frmXemToaThuoc theFrmXemToaThuoc;
				object[] theObjectArray;
				if ((this.clrNoiSoiISN != string.Empty) && (this.clrNoiSoiISN != ""))
				{
					goto L_0029;
				}
				
			L_0024:
				
				{
				}
				goto L_02CB;
				
			L_0029:
				
				{
				}
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT mesISN FROM MedicineExport WHERE clrISN=", this.clrNoiSoiISN), theSqlConnection);
				theDataSet = new DataSet ();
				int i3 = theSqlDataAdapter.Fill (theDataSet, "MedicineExport");
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables[0].Rows.Count != 0)))
				{
					goto L_0284;
				}
				
			L_008A:
				
				{
				}
				i = 0;
				i2 = 0;
				if (! this.cbETimes.Visible)
				{
					goto L_00C2;
				}
				if (this.cboTaiKham.Visible)
				{
					goto L_00C2;
				}
				i = int.Parse (this.cbETimes.Text);
				i2 = 0;
				goto L_0179;
				
			L_00C2:
				
				{
				}
				if (this.cbETimes.Visible)
				{
					goto L_013C;
				}
				if (this.cboTaiKham.Visible)
				{
					goto L_013C;
				}
				if (int.Parse (this.txtTaiKham.Text) != 0)
				{
					goto L_0117;
				}
				if (int.Parse (this.tbLanKham.Text) <= 1)
				{
					goto L_0117;
				}
				i = int.Parse (this.tbLanKham.Text);
				i2 = 0;
				goto L_013A;
				
			L_0117:
				
				{
				}
				i = int.Parse (this.tbLanKham.Text);
				i2 = int.Parse (this.txtTaiKham.Text);
				
			L_013A:
				
				{
				}
				goto L_0179;
				
			L_013C:
				
				{
				}
				if (! this.cbETimes.Visible)
				{
					goto L_0179;
				}
				if (! this.cboTaiKham.Visible)
				{
					goto L_0179;
				}
				i = int.Parse (this.cbETimes.Text);
				i2 = int.Parse (this.cboTaiKham.Text);
				
			L_0179:
				
				{
				}
				theObjectArray = new object[7];
				theObjectArray[0] = "SELECT * from dbo.fn_MaxRexamTimesOFMaxExamTimes (";
				theObjectArray[1] = this.tbID.Text;
				theObjectArray[2] = ",";
				theObjectArray[3] = i;
				theObjectArray[4] = ",";
				theObjectArray[5] = i2;
				theObjectArray[6] = ")";
				theSqlDataAdapter2 = new SqlDataAdapter (string.Concat (theObjectArray), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i4 = theSqlDataAdapter2.Fill (theDataSet2, "MaxPrescription");
				theString = theDataSet2.Tables["MaxPrescription"].Rows[0][0].ToString ();
				theString2 = theDataSet2.Tables["MaxPrescription"].Rows[0][1].ToString ();
				theFrmToaThuocHoSoBenhAn = new frmToaThuocHoSoBenhAn (this.clrNoiSoiISN, this.tbID.Text.ToString (), this.tbFullName.Text.ToString (), theString, theString2);
				theFrmToaThuocHoSoBenhAn.ShowInTaskbar = false;
				DialogResult theDialogResult = theFrmToaThuocHoSoBenhAn.ShowDialog (((IWin32Window) this));
				goto L_02BF;
				
			L_0284:
				
				{
				}
				this.ID = this.tbID.Text;
				this.Ten = this.tbFullName.Text;
				theFrmXemToaThuoc = new frmXemToaThuoc (this);
				theFrmXemToaThuoc.ShowInTaskbar = false;
				DialogResult theDialogResult2 = theFrmXemToaThuoc.ShowDialog (((IWin32Window) this));
				
			L_02BF:
				
				{
				}
				theSqlDataAdapter.Dispose ();
				theSqlConnection.Close ();
				
			L_02CB:
				return;
			}
			
			private void linkNoiSoi_LinkClicked (object sender, LinkLabelLinkClickedEventArgs e)
			
			{
				frmNoiSoi theFrmNoiSoi;
				theFrmNoiSoi = new frmNoiSoi (this.tbID.Text.ToString (), this.tbFullName.Text.ToString (), this.clrNoiSoiISN, this.Insert, this.NgayKham);
				theFrmNoiSoi.ShowInTaskbar = false;
				DialogResult theDialogResult = theFrmNoiSoi.ShowDialog ();
				return;
			}
			
			private void linkXetNghiem_LinkClicked (object sender, LinkLabelLinkClickedEventArgs e)
			
			{
				bool theBoolean;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				frmKQXetNghiem theFrmKQXetNghiem;
				if ((this.clrNoiSoiISN != string.Empty) && (this.clrNoiSoiISN != ""))
				{
					goto L_0029;
				}
				
			L_0024:
				
				{
				}
				goto L_00C9;
				
			L_0029:
				
				{
				}
				theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT nlpISN FROM vw_AnalyzeResult WHERE clrISN=", this.clrNoiSoiISN), this.connStr);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, "vw_AnalyzeResult");
				theSqlDataAdapter.Dispose ();
				if (theDataSet == null)
				{
					goto L_0086;
				}
				if (theDataSet.Tables.Count == 0)
				{
					goto L_0086;
				}
				if (theDataSet.Tables[0].Rows.Count != 0)
				{
					goto L_008A;
				}
				
			L_0086:
				
				{
				}
				theBoolean = true;
				goto L_008C;
				
			L_008A:
				
				{
				}
				theBoolean = false;
				
			L_008C:
				
				{
				}
				theBoolean = true;
				theFrmKQXetNghiem = new frmKQXetNghiem (this.tbID.Text.ToString (), this.tbFullName.Text.ToString (), this.clrNoiSoiISN, theBoolean);
				theFrmKQXetNghiem.ShowInTaskbar = false;
				DialogResult theDialogResult = theFrmKQXetNghiem.ShowDialog ();
				
			L_00C9:
				return;
			}
			
			private void listView1_DoubleClick (object sender, EventArgs e)
			
			{
				ListViewItem theListViewItem;
				if (this.listView1.SelectedItems.Count <= 0)
				{
					goto L_0036;
				}
				theListViewItem = this.listView1.SelectedItems[0];
				this.listView1.Items.Remove (theListViewItem);
				
			L_0036:
				return;
			}
			
			private void listView1_MouseDown (object sender, MouseEventArgs e)
			
			{
				frmBangMau theFrmBangMau;
				ListViewItem theListViewItem;
				ListViewItem theListViewItem2;
				ListViewItem[] theListViewItemArray;
				if (e.Button != MouseButtons.Right)
				{
					goto L_0116;
				}
				theFrmBangMau = new frmBangMau ();
				theFrmBangMau.ShowInTaskbar = false;
				DialogResult theDialogResult = theFrmBangMau.ShowDialog ();
				if (this.listView1.SelectedItems.Count <= 0)
				{
					goto L_0116;
				}
				theListViewItem = this.listView1.SelectedItems[0];
				theListViewItem2 = new ListViewItem (theListViewItem.Text.ToString ());
				if (Class.mau != "Red")
				{
					goto L_0079;
				}
				theListViewItem2.ForeColor = Color.Red;
				
			L_0079:
				
				{
				}
				if (Class.mau != "Green")
				{
					goto L_0095;
				}
				theListViewItem2.ForeColor = Color.Green;
				
			L_0095:
				
				{
				}
				if (Class.mau != "Purple")
				{
					goto L_00B1;
				}
				theListViewItem2.ForeColor = Color.Purple;
				
			L_00B1:
				
				{
				}
				if (Class.mau != "Blue")
				{
					goto L_00CD;
				}
				theListViewItem2.ForeColor = Color.Blue;
				
			L_00CD:
				
				{
				}
				if (Class.mau != "Gray")
				{
					goto L_00E9;
				}
				theListViewItem2.ForeColor = Color.Gray;
				
			L_00E9:
				
				{
				}
				theListViewItemArray = new ListViewItem[1];
				theListViewItemArray[0] = theListViewItem2;
				this.listView1.Items.AddRange (theListViewItemArray);
				this.listView1.Items.Remove (theListViewItem);
				
			L_0116:
				return;
			}
			
			private void listView1_SelectedIndexChanged (object sender, EventArgs e)
			
			{
				ListViewItem theListViewItem;
				if (this.listView1.SelectedItems.Count <= 0)
				{
					goto L_0041;
				}
				theListViewItem = this.listView1.SelectedItems[0];
				this.toolTip1.SetToolTip (((Control) this.listView1), theListViewItem.Text.ToString ());
				
			L_0041:
				return;
			}
			
			private void LoadChanDoan ()
			
			{
				ArrayList theArrayList;
				ArrayList theArrayList2;
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				int i;
				int i2;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				DataTable theDataTable2;
				int i3;
				theArrayList = new ArrayList ();
				theArrayList2 = new ArrayList ();
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlDataAdapter = new SqlDataAdapter ("select distinct(pltISN), pltName from vw_PathologicalSign order by pltName", theSqlConnection);
				theDataSet = new DataSet ();
				int i4 = theSqlDataAdapter.Fill (theDataSet, "vw_PathologicalSign");
				if (theDataSet == null)
				{
					goto L_0188;
				}
				
			L_0042:
				
				{
				}
				theDataTable = theDataSet.Tables["vw_PathologicalSign"];
				i = 0;
				goto L_00A0;
				
			L_005A:
				
				{
				}
				int i5 = theArrayList.Add (theDataTable.Rows[i][0].ToString ());
				int i6 = theArrayList2.Add (theDataTable.Rows[i][1].ToString ());
				i++;
				
			L_00A0:
				
				{
				}
				if (i < theDataTable.Rows.Count)
				{
					goto L_005A;
				}
				i2 = 0;
				goto L_016F;
				
			L_00B8:
				
				{
				}
				this.insertParentNode (theArrayList2[i2].ToString ());
				theSqlDataAdapter2 = new SqlDataAdapter (string.Concat ("SELECT * FROM PathologicalSigns WHERE pltISN=", theArrayList[i2].ToString (), " order by plsPathologicalSigns"), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i7 = theSqlDataAdapter2.Fill (theDataSet2, "Sicks");
				theDataTable2 = theDataSet2.Tables["Sicks"];
				i3 = 0;
				goto L_0142;
				
			L_011D:
				
				{
				}
				this.insertChildNode (theDataTable2.Rows[i3][2].ToString ());
				i3++;
				
			L_0142:
				
				{
				}
				if (i3 < theDataTable2.Rows.Count)
				{
					goto L_011D;
				}
				int i8 = this.treeView2.Nodes.Add (this.node);
				i2++;
				
			L_016F:
				
				{
				}
				if (i2 < theArrayList.Count)
				{
					goto L_00B8;
				}
				theSqlDataAdapter.Dispose ();
				theSqlConnection.Close ();
				
			L_0188:
				return;
			}
			
			private void loadTienIch ()
			
			{
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				MenuItem theMenuItem;
				int i;
				MenuItem theMenuItem2;
				int i2;
				MenuItem theMenuItem3;
				int i3;
				theSqlDataAdapter = new SqlDataAdapter ("Select * From advice", this.connStr);
				theDataSet = new DataSet ();
				int i4 = theSqlDataAdapter.Fill (theDataSet, "Advice");
				theSqlDataAdapter.Dispose ();
				i = 0;
				goto L_0099;
				
			L_002E:
				
				{
				}
				theMenuItem = new MenuItem ();
				theMenuItem.Text = theDataSet.Tables["Advice"].Rows[i][1].ToString ();
				int i5 = this.ctmLoiKhuyen.MenuItems.Add (i, theMenuItem);
				this.ctmLoiKhuyen.MenuItems[i].Click += new EventHandler (this.AddLoiKhuyen);
				i++;
				
			L_0099:
				
				{
				}
				if (i < theDataSet.Tables["Advice"].Rows.Count)
				{
					goto L_002E;
				}
				theSqlDataAdapter = new SqlDataAdapter ("select * from TreatmentSkill", this.connStr);
				theDataSet.Clear ();
				int i6 = theSqlDataAdapter.Fill (theDataSet, "TreatmentSkill");
				i2 = 0;
				goto L_0155;
				
			L_00E2:
				
				{
				}
				theMenuItem2 = new MenuItem ();
				theMenuItem2.Text = theDataSet.Tables["TreatmentSkill"].Rows[i2][1].ToString ();
				int i7 = this.ctmThuThuat.MenuItems.Add (i2, theMenuItem2);
				this.ctmThuThuat.MenuItems[i2].Click += new EventHandler (this.AddThuThuat);
				i2++;
				
			L_0155:
				
				{
				}
				if (i2 < theDataSet.Tables["TreatmentSkill"].Rows.Count)
				{
					goto L_00E2;
				}
				theSqlDataAdapter = new SqlDataAdapter ("select * from Surgical", this.connStr);
				theDataSet.Clear ();
				int i8 = theSqlDataAdapter.Fill (theDataSet, "Surgical");
				theSqlDataAdapter.Dispose ();
				i3 = 0;
				goto L_0218;
				
			L_01A5:
				
				{
				}
				theMenuItem3 = new MenuItem ();
				theMenuItem3.Text = theDataSet.Tables["Surgical"].Rows[i3][1].ToString ();
				int i9 = this.ctmPhauThuat.MenuItems.Add (i3, theMenuItem3);
				this.ctmPhauThuat.MenuItems[i3].Click += new EventHandler (this.AddPhauThuat);
				i3++;
				
			L_0218:
				
				{
				}
				if (i3 < theDataSet.Tables["Surgical"].Rows.Count)
				{
					goto L_01A5;
				}
				return;
			}
			
			private void tbDiDong_KeyPress (object sender, KeyPressEventArgs e)
			
			{
				if (char.IsNumber (e.KeyChar))
				{
					goto L_001D;
				}
				if (e.KeyChar == '\u0008')
				{
					goto L_001D;
				}
				e.Handled = true;
				
			L_001D:
				return;
			}
			
			private void tbMach_KeyPress (object sender, KeyPressEventArgs e)
			
			{
				if (e.KeyChar != '\u002C')
				{
					goto L_0011;
				}
				e.Handled = true;
				
			L_0011:
				return;
			}
			
			private void tbPhone_KeyPress (object sender, KeyPressEventArgs e)
			
			{
				if (char.IsNumber (e.KeyChar))
				{
					goto L_001D;
				}
				if (e.KeyChar == '\u0008')
				{
					goto L_001D;
				}
				e.Handled = true;
				
			L_001D:
				return;
			}
			
			private void treeView1_DoubleClick (object sender, EventArgs e)
			
			{
				string theString;
				int i;
				int i2;
				ListViewItem theListViewItem;
				int i3;
				ListViewItem theListViewItem2;
				ListViewItem[] theListViewItemArray;
				ListViewItem[] theListViewItemArray2;
				
			L_0000:
				try
				{
					theString = this.treeView1.SelectedNode.Text.ToString ();
					i = 0;
					i2 = 0;
					if (this.treeView1.SelectedNode.Parent.IsSelected)
					{
						goto L_0115;
					}
					i = this.listView1.Items.Count;
					if (i != 0)
					{
						goto L_0092;
					}
					theListViewItem = new ListViewItem (this.treeView1.SelectedNode.Text.ToString ());
					theListViewItem.ForeColor = Color.Gray;
					theListViewItemArray = new ListViewItem[1];
					theListViewItemArray[0] = theListViewItem;
					this.listView1.Items.AddRange (theListViewItemArray);
					goto L_0115;
					
				L_0092:
					
					{
					}
					i3 = 0;
					goto L_00C5;
					
				L_0097:
					
					{
					}
					if (theString != this.listView1.Items[i3].Text.ToString ())
					{
						goto L_00BF;
					}
					i2++;
					
				L_00BF:
					
					{
					}
					i3++;
					
				L_00C5:
					
					{
					}
					if (i3 < i)
					{
						goto L_0097;
					}
					if (i2 != 0)
					{
						goto L_0115;
					}
					theListViewItem2 = new ListViewItem (this.treeView1.SelectedNode.Text.ToString ());
					theListViewItem2.ForeColor = Color.Gray;
					theListViewItemArray2 = new ListViewItem[1];
					theListViewItemArray2[0] = theListViewItem2;
					this.listView1.Items.AddRange (theListViewItemArray2);
					
				L_0115:
					
					{
					}
				}
				catch
				{
					
				L_0117:
					
					{
					}
				}
				
			L_011A:
				return;
			}
			
			private void treeView2_DoubleClick (object sender, EventArgs e)
			
			{
				string theString;
				int i;
				int i2;
				int i3;
				
			L_0000:
				try
				{
					theString = this.treeView2.SelectedNode.Text.ToString ();
					i = 0;
					i2 = 0;
					if (this.treeView2.SelectedNode.Parent.IsSelected)
					{
						goto L_00C7;
					}
					i = this.lbCD.Items.Count;
					if (i != 0)
					{
						goto L_0070;
					}
					int i4 = this.lbCD.Items.Add (this.treeView2.SelectedNode.Text.ToString ());
					goto L_00C7;
					
				L_0070:
					
					{
					}
					i3 = 0;
					goto L_009A;
					
				L_0074:
					
					{
					}
					if (theString != this.lbCD.Items[i3].ToString ())
					{
						goto L_0096;
					}
					i2++;
					
				L_0096:
					
					{
					}
					i3++;
					
				L_009A:
					
					{
					}
					if (i3 < i)
					{
						goto L_0074;
					}
					if (i2 != 0)
					{
						goto L_00C7;
					}
					int i5 = this.lbCD.Items.Add (this.treeView2.SelectedNode.Text.ToString ());
					
				L_00C7:
					
					{
					}
				}
				catch
				{
					
				L_00C9:
					
					{
					}
				}
				
			L_00CC:
				return;
			}
			
		#endregion
	}
	
}

